Module: check_mk
Branch: master
Commit: 50710a488a5911ccdd1022bf89d38101e53f39f0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=50710a488a5911…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Sat Jan 5 13:03:38 2019 +0100
Fixed sidebar reload flag not being reset on WATO sites after a site modification
Change-Id: Icbed8d763ec6e5b58269d38512e2d8ba0c9e770d
---
cmk/gui/watolib.py | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/cmk/gui/watolib.py b/cmk/gui/watolib.py
index 4fedbee..2697e23 100644
--- a/cmk/gui/watolib.py
+++ b/cmk/gui/watolib.py
@@ -467,6 +467,7 @@ def init_watolib_datastructures():
if config.wato_use_git:
prepare_git_commit()
+ reset_need_sidebar_reload()
update_config_based_host_attributes()
@@ -10497,16 +10498,22 @@ def validate_all_hosts(hostnames, force_all=False):
return {}
+# TODO: Cleanup this global state
g_need_sidebar_reload = None
+def reset_need_sidebar_reload():
+ global g_need_sidebar_reload
+ g_need_sidebar_reload = None
+
+
def need_sidebar_reload():
global g_need_sidebar_reload
- g_need_sidebar_reload = id(html)
+ g_need_sidebar_reload = True
def is_sidebar_reload_needed():
- return g_need_sidebar_reload == id(html)
+ return g_need_sidebar_reload
def folder_preserving_link(add_vars):