Module: check_mk
Branch: master
Commit: 4f9765fc7204ea240d3ead29715ba44e512d85b8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4f9765fc7204ea…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Sep 8 13:16:26 2016 +0200
Renamed default automation user to "automation"
---
tests/testlib/__init__.py | 4 ++--
web/htdocs/userdb.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index c3a66e8..9555e1a 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -541,14 +541,14 @@ class CMKWebSession(WebSession):
#
def _automation_credentials(self):
- secret_path = "%s/var/check_mk/web/cmkautomation/automation.secret" %
self.site.root
+ secret_path = "%s/var/check_mk/web/automation/automation.secret" %
self.site.root
p = self.site.execute(["cat", secret_path], stdout=subprocess.PIPE)
secret = p.communicate()[0].rstrip()
if secret == "":
raise Exception("Failed to read secret from %s" % secret_path)
return {
- "_username" : "cmkautomation",
+ "_username" : "automation",
"_secret" : secret,
}
diff --git a/web/htdocs/userdb.py b/web/htdocs/userdb.py
index 716adca..8e4bc96 100644
--- a/web/htdocs/userdb.py
+++ b/web/htdocs/userdb.py
@@ -845,7 +845,7 @@ def create_cmk_automation_user():
secret = gen_id()
users = load_users(lock=True)
- users["cmkautomation"] = {
+ users["automation"] = {
'alias' : u"Check_MK Automation - used for calling
web services",
'contactgroups' : [],
'automation_secret' : secret,