]> granicus.if.org Git - icinga2/commitdiff
Fix icinga2-list-agents
authorGunnar Beutner <gunnar@beutner.name>
Fri, 24 Oct 2014 09:44:11 +0000 (11:44 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Fri, 24 Oct 2014 09:44:11 +0000 (11:44 +0200)
refs #7248

agent/icinga2-list-agents.cmake

index 8e20389fa3ee0f667567db5ef8dfc3da9eda415f..5204c4583db3561ec6ce21e62445cd983fd4ca1c 100644 (file)
@@ -25,10 +25,10 @@ repository = {}
 
 for root, dirs, files in os.walk(repository_dir):
     for file in files:
-        if len(file) != 64:
+        if len(file) != 69:
             continue
 
-        fp = open(root + file + ".repo", "r")
+        fp = open(root + file, "r")
         repository_info = json.load(fp)
         fp.close()