Module: check_mk
Branch: master
Commit: 92281b52ec0155d9d56a6f6ec928bf8f170985ae
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=92281b52ec0155…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Sep 11 12:40:23 2017 +0200
Fixed broken rename of hosts after refactoring in master
Change-Id: I6706c4e92a7c3ed2eb5be5d4528365b41a1463d7
---
cmk_base/automations/check_mk.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk_base/automations/check_mk.py b/cmk_base/automations/check_mk.py
index 288d8c1..4abdd0a 100644
--- a/cmk_base/automations/check_mk.py
+++ b/cmk_base/automations/check_mk.py
@@ -448,7 +448,7 @@ s/(HOST|SERVICE) NOTIFICATION: ([^;]+);%(old)s;/\1 NOTIFICATION:
\2;%(new)s;/
paths = glob.glob(path_pattern)
if paths:
extended = ["-r"] if extended_regex else []
- subprocess.call(["sed", "-i"] + extended +
["s@%s@/%s/@" % (old, new)] + paths,
+ subprocess.call(["sed", "-i"] + extended +
["s@%s@%s@" % (old, new)] + paths,
stderr=open(os.devnull, "w"))
return True
else: