Fix icinga2-list-agents.

Refs #6008
This commit is contained in:
Gunnar Beutner 2014-04-15 15:03:30 +02:00
parent 559a4fef67
commit 31451a2b15
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ for root, dirs, files in os.walk(inventory_dir):
inventory[inventory_info["identity"]]["seen"] = inventory_info["params"]["seen"]
inventory[inventory_info["identity"]]["hosts"] = {}
if not "hosts" in host_info in inventory_info["params"]:
if not "hosts" in inventory_info["params"]:
continue
for host, host_info in inventory_info["params"]["hosts"].items():