Module: check_mk
Branch: master
Commit: 5fe220a937a6095ba42349cbd721831de49dcfa9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5fe220a937a609…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Tue Jan 15 14:25:50 2019 +0100
Use rewrite_users instead of load and store
Change-Id: Ib15832431cf477d30251c64a6e412ce0f8fa9f46
---
cmk/gui/userdb.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk/gui/userdb.py b/cmk/gui/userdb.py
index af73dcf..f157b03 100644
--- a/cmk/gui/userdb.py
+++ b/cmk/gui/userdb.py
@@ -1317,7 +1317,7 @@ def general_userdb_job():
# Create initial auth.serials file, same issue as auth.php above
serials_file = '%s/auth.serials' %
os.path.dirname(cmk.utils.paths.htpasswd_file)
if not os.path.exists(serials_file) or os.path.getsize(serials_file) == 0:
- save_users(load_users(lock=True))
+ rewrite_users()
def execute_userdb_job():