]> granicus.if.org Git - icinga2/commitdiff
Fix icinga2-list-agents.
authorGunnar Beutner <gunnar@beutner.name>
Tue, 15 Apr 2014 13:03:30 +0000 (15:03 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 15 Apr 2014 13:03:30 +0000 (15:03 +0200)
Refs #6008

tools/icinga2-list-agents.cmake

index 5d87a15c01c34a5d66a90b608073a52b726d28ae..639779b76a68f73d0bee486866dbcabcaf328a36 100644 (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():