Module: check_mk
Branch: master
Commit: 6be42230daaa560e21545515a5d4d5df4daf7002
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6be42230daaa56…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Sep 23 11:05:06 2014 +0200
userdb: avoid warning in Apache log about globals
---
web/htdocs/userdb.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/userdb.py b/web/htdocs/userdb.py
index 80c8d3f..9ab3306 100644
--- a/web/htdocs/userdb.py
+++ b/web/htdocs/userdb.py
@@ -38,6 +38,9 @@ builtin_user_attribute_names = []
# Load all userdb plugins
def load_plugins():
+ global user_attributes
+ global multisite_user_connectors
+
# Do not cache the custom user attributes. They can be created by the user
# during runtime, means they need to be loaded during each page request.
# But delete the old definitions before to also apply removals of attributes
@@ -52,8 +55,8 @@ def load_plugins():
return
# declare & initialize global vars
- global user_attributes ; user_attributes = {}
- global multisite_user_connectors ; multisite_user_connectors = []
+ user_attributes = {}
+ multisite_user_connectors = []
load_web_plugins("userdb", globals())