Module: check_mk
Branch: master
Commit: 006c41e1dafe0cac22a0c228cd4fcb7ab2c6e2f1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=006c41e1dafe0c…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed May 25 14:11:44 2016 +0200
renamed internal function
---
modules/check_mk.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 833274d..94d8388 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -4224,7 +4224,7 @@ def do_restart(only_reload = False):
try:
backup_path = None
- if another_activation_is_in_progress():
+ if try_get_activation_lock():
sys.stderr.write("Other restart currently in progress.
Aborting.\n")
sys.exit(1)
@@ -4275,7 +4275,7 @@ def do_restart(only_reload = False):
sys.exit(1)
restart_lock_fd = None
-def another_activation_is_in_progress():
+def try_get_activation_lock():
global restart_lock_fd
# In some bizarr cases (as cmk -RR) we need to avoid duplicate locking!
if restart_locking and restart_lock_fd == None: