Module: check_mk
Branch: master
Commit: d55166f2bc3871d53c9f06f686dda70a3aed71fc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d55166f2bc3871…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 21 08:47:05 2017 +0200
Minor cleanup: wato.py global vars are now declared in global scope
Change-Id: If5797e00390697a4f3fb8a1c8ecef07fa600115d
---
web/htdocs/wato.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index d156cac..c83b7c2 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -17172,6 +17172,8 @@ modes = {
"read_only" : (["set_read_only"], ModeManageReadOnly),
}
+extra_buttons = []
+modules = []
builtin_host_attribute_names = []
loaded_with_language = False
@@ -17188,9 +17190,8 @@ def load_plugins(force):
return
# Reset global vars
- global extra_buttons, modules
- extra_buttons = []
- modules = []
+ del extra_buttons[:]
+ del modules[:]
initialize_host_attribute_structures()
undeclare_all_host_attributes()