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:
02877fd
)
also send lastlog times
author
Stephen Gran
<steve@lobefin.net>
Tue, 14 Jan 2014 08:24:31 +0000
(08:24 +0000)
committer
Stephen Gran
<steve@lobefin.net>
Tue, 14 Jan 2014 08:24:31 +0000
(08:24 +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
8b1d3ce
..
d5277ae
100755
(executable)
--- 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)