Module: check_mk
Branch: master
Commit: e72c284bb8cc84a6513809b949e2d6e4ffa9f3c1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e72c284bb8cc84…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Nov 11 16:28:00 2013 +0100
FIX Explicit communities were not written to config files in all cases
---
.werks/207 | 8 ++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 2 +-
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.werks/207 b/.werks/207
new file mode 100644
index 0000000..1af0e27
--- /dev/null
+++ b/.werks/207
@@ -0,0 +1,8 @@
+Title: Explicit communities were not written to config files in all cases
+Level: 1
+Component: wato
+Version: 1.2.3i7
+Date: 1384183647
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 734c5d3..be3ca97 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -30,6 +30,7 @@
* 0048 FIX: Fixed locking issue on host diagnose page
* 0033 FIX: WATO forms: incorrect handling of checkbox state
* 0205 FIX: Allowing star chars in variable names to fix role/permission editing...
+ * 0207 FIX: Explicit communities were not written to config files in all cases
Notifications:
* 0032 FIX: mail notification plugin: replace windows forbidden characters in mail
images
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 17e5c89..4f3b259 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -761,7 +761,7 @@ def save_hosts(folder = None):
out.write(pprint.pformat(ipaddresses))
out.write(")\n")
- if len(ipaddresses) > 0:
+ if len(explicit_snmp_communities) > 0:
out.write("\n# Explicit SNMP communities\n")
out.write("explicit_snmp_communities.update(")
out.write(pprint.pformat(explicit_snmp_communities))