Module: check_mk
Branch: master
Commit: d2af3706c08ad31d480e29511506a6a6f4a6f476
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d2af3706c08ad3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Dec 6 15:30:53 2011 +0100
Fixed default values in exception case (when sample config file is missing)
---
web/htdocs/config.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/config.py b/web/htdocs/config.py
index efb81ee..f195e96 100644
--- a/web/htdocs/config.py
+++ b/web/htdocs/config.py
@@ -73,8 +73,8 @@ def include(filename):
except Exception, e:
global user_id
global roles
- user = "nobody"
- roles = []
+ user_id = "nobody"
+ roles = {}
raise MKConfigError("Cannot read configuration file %s: %s:" %
(filename, e))
modification_timestamps = []