Module: check_mk
Branch: master
Commit: 437e6c72d6e12e9efc2d4a3093c4a12be34f1531
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=437e6c72d6e12e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jul 5 09:36:50 2013 +0200
FIX: avoid exception when called first time and first page ist host tags
---
ChangeLog | 1 +
web/htdocs/wato.py | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 48a2781..b41fc78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -244,6 +244,7 @@
WATO:
* FIX: fix layout of Auxiliary tags table
+ * FIX: avoid exception when called first time and first page ist host tags
1.2.2p2:
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index d67f695..0cd5838 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -11733,6 +11733,10 @@ def create_sample_config():
save_rulesets(g_root_folder, rulesets)
+ # Make sure the host tag attributes are immediately declared!
+ config.wato_host_tags = wato_host_tags
+ config.wato_aux_tags = wato_aux_tags
+
#.
# .-Pattern Editor-------------------------------------------------------.
# | ____ _ _ _____ _ _ _ |