Module: check_mk
Branch: master
Commit: 2fba82271166d54551801e2255ce9cf9712b2686
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2fba82271166d5…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 7 14:45:25 2011 +0100
WATO: Fixed creation of automation.secret
---
web/htdocs/wato.py | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 532e50f..fc55d82 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -7609,14 +7609,14 @@ def save_users(profiles):
locksym = ""
out.write("%s:%s%s\n" % (id, locksym, user["password"]))
- # Authentication secret for local processes
- auth_dir = defaults.var_dir + "/web/" + id
- auth_file = auth_dir + "/automation.secret"
- make_nagios_directory(auth_dir)
- if "automation_secret" in user:
- create_user_file(auth_file, "w").write("%s\n" %
user["automation_secret"])
- elif os.path.exists(auth_file):
- os.remove(auth_file)
+ # Authentication secret for local processes
+ auth_dir = defaults.var_dir + "/web/" + id
+ auth_file = auth_dir + "/automation.secret"
+ make_nagios_directory(auth_dir)
+ if "automation_secret" in user:
+ create_user_file(auth_file, "w").write("%s\n" %
user["automation_secret"])
+ elif os.path.exists(auth_file):
+ os.remove(auth_file)
# Call the users_saved hook
call_hook(call_hook_users_saved, users)