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:
ca7c180
)
and fix errors
author
Stephen Gran
<steve@lobefin.net>
Tue, 14 Jan 2014 08:31:41 +0000
(08:31 +0000)
committer
Stephen Gran
<steve@lobefin.net>
Tue, 14 Jan 2014 08:31:41 +0000
(08:31 +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
d5277ae
..
98774fe
100755
(executable)
--- a/
modules/porterbox/files/mail-big-homedirs
+++ b/
modules/porterbox/files/mail-big-homedirs
@@
-194,9
+194,10
@@
class HomedirReminder(object):
def run(self):
current_time = time.time()
+ conn = None
try:
data = {}
- for user in set(self.homedir_sizes.keys())
+
+ for user in set(self.homedir_sizes.keys())
| \
set(self.lastlog_times.keys()):
data[user] = {
'homedir': self.homedir_sizes.get(user, 0),
@@
-214,7
+215,7
@@
class HomedirReminder(object):
exchange_name=config.exchange,
timeout=5)
except Exception, e:
-
LOG
.error("Error sending: %s" % e)
+
logging
.error("Error sending: %s" % e)
finally:
if conn:
conn.close()