Module: check_mk
Branch: master
Commit: 4400d6edd2c19703980823c0cbacbee172c11d87
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4400d6edd2c197…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 16 13:37:49 2016 +0100
Small code formating
---
modules/nagios.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/nagios.py b/modules/nagios.py
index 988e9fa..7591a1d 100644
--- a/modules/nagios.py
+++ b/modules/nagios.py
@@ -851,9 +851,12 @@ def create_nagios_config_contacts(outfile, hostnames):
if not no or not not_enabled:
outfile.write(" %s_notifications_enabled\t0\n" % what)
no = "n"
- outfile.write(" %s_notification_options\t%s\n" % (what,
",".join(list(no))))
- outfile.write(" %s_notification_period\t%s\n" % (what,
contact.get("notification_period", "24X7")))
- outfile.write(" %s_notification_commands\t%s\n" % (what,
contact.get("%s_notification_commands" % what, "check-mk-notify")))
+ outfile.write(" %s_notification_options\t%s\n" %
+ (what, ",".join(list(no))))
+ outfile.write(" %s_notification_period\t%s\n" %
+ (what, contact.get("notification_period",
"24X7")))
+ outfile.write(" %s_notification_commands\t%s\n" %
+ (what, contact.get("%s_notification_commands" % what,
"check-mk-notify")))
# Add custom macros
for macro in [ m for m in contact.keys() if m.startswith('_') ]:
outfile.write(" %s\t%s\n" % ( macro, contact[macro] ))