From: Stephen Gran Date: Tue, 14 Jan 2014 08:24:31 +0000 (+0000) Subject: also send lastlog times X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ca7c18007c9f3f380dbf71841e97204eb90bb4ca;hp=02877fd7a80d851f757aa7d6ea19fa5f84c5d40e;p=dsa-puppet.git also send lastlog times Signed-off-by: Stephen Gran --- diff --git a/modules/porterbox/files/mail-big-homedirs b/modules/porterbox/files/mail-big-homedirs index 8b1d3cec..d5277aef 100755 --- a/modules/porterbox/files/mail-big-homedirs +++ b/modules/porterbox/files/mail-big-homedirs @@ -195,9 +195,17 @@ class HomedirReminder(object): def run(self): current_time = time.time() try: + data = {} + for user in set(self.homedir_sizes.keys()) + + set(self.lastlog_times.keys()): + data[user] = { + 'homedir': self.homedir_sizes.get(user, 0), + 'lastlog': self.lastlog_times.get(user, 0), + } + msg = { 'timestamp': current_time, - 'data': self.homedir_sizes, + 'data': data, 'host': platform.node(), } conn = Connection(conf=mq_conf)