Module: check_mk
Branch: master
Commit: 44f7a15721ab2bf1da0f8b649db9f1e27baa0c9c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=44f7a15721ab2b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jul 28 13:25:43 2016 +0200
Store passwords as plain non-MK file
---
modules/check_mk.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index b6a3143..e095faa 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -3440,11 +3440,11 @@ def verify_cluster_address_family(hostname):
def write_stored_passwords():
- formated = ""
+ content = ""
for ident, pw in stored_passwords.items():
- formated += "%s:%s\n" % (ident, pw["password"])
+ content += "%s:%s\n" % (ident, pw["password"])
- store.save_mk_file(var_dir + "/stored_passwords.mk", formated)
+ store.save_file(var_dir + "/stored_passwords", content)
def get_cluster_nodes_for_config(hostname):