Module: check_mk
Branch: master
Commit: 1ff68613bf1095337625d4a9551fdc0014c75e11
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ff68613bf1095…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Sun Nov 1 15:50:23 2015 +0100
update werk 2442: required "import glob"
---
modules/automation.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/automation.py b/modules/automation.py
index 471e6a1..bdacd59 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -370,6 +370,7 @@ def automation_delete_host(args):
"%s/inventory/%s.gz" % (var_dir, hostname)]:
os.system("rm -rf '%s'" % path)
+ import glob
for path in [ "%s/%s.*" % (tcp_cache_dir, hostname),
"%s/agents/*/%s" % (var_dir, hostname) ]: # only remove
bakery symlinks
for filename in glob.glob(path):