Module: check_mk
Branch: master
Commit: 90ddc1b3b76361162032fa7cdd0919e52e5863cb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=90ddc1b3b76361…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu May 7 15:50:58 2015 +0200
Fix syntax error in wato.py from a couple of minutes ago
---
web/htdocs/wato.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 932b5a4..8124982 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3753,7 +3753,7 @@ def mode_bulk_inventory(phase):
_("Inventorized host: %d added, %d removed, %d kept, %d
total services") %
tuple(counts[hostname]))
- if "inventory_failed" in hostand not
hosts.get(".folder", {}).get("_lock_hosts"):
+ if "inventory_failed" in host and not
hosts.get(".folder", {}).get("_lock_hosts"):
del host["inventory_failed"]
save_hosts(folder) # Could be optimized, but difficult here