projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2350508
)
go with platform.node()
author
Stephen Gran
<steve@lobefin.net>
Mon, 13 Jan 2014 21:56:49 +0000
(21:56 +0000)
committer
Stephen Gran
<steve@lobefin.net>
Mon, 13 Jan 2014 21:56:49 +0000
(21:56 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/porterbox/files/mail-big-homedirs
patch
|
blob
|
history
diff --git
a/modules/porterbox/files/mail-big-homedirs
b/modules/porterbox/files/mail-big-homedirs
index
43dfe91
..
8b1d3ce
100755
(executable)
--- a/
modules/porterbox/files/mail-big-homedirs
+++ b/
modules/porterbox/files/mail-big-homedirs
@@
-35,7
+35,6
@@
from optparse import OptionParser
import os.path
import platform
import pwd
-import socket
import subprocess
import struct
import time
@@
-199,7
+198,7
@@
class HomedirReminder(object):
msg = {
'timestamp': current_time,
'data': self.homedir_sizes,
- 'host':
socket.gethostname()
+ 'host':
platform.node(),
}
conn = Connection(conf=mq_conf)
conn.topic_send(config.topic,