From 289b0cf8c8bf79adb9b782a7150c68d27db7bfca Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Mon, 13 Jan 2014 21:56:49 +0000 Subject: [PATCH] go with platform.node() Signed-off-by: Stephen Gran --- modules/porterbox/files/mail-big-homedirs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/porterbox/files/mail-big-homedirs b/modules/porterbox/files/mail-big-homedirs index 43dfe9167..8b1d3cec0 100755 --- 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, -- 2.20.1