From 582f2ffe5b6ad7dc96e42a28c8d87b241225803f Mon Sep 17 00:00:00 2001 From: Erik Edelmann Date: Thu, 10 Apr 2014 19:02:52 +0300 Subject: [PATCH] Don't add non-existing clusters to the list of found clusters. --- src/python/ProdCommon/BossLite/Scheduler/SchedulerARC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/ProdCommon/BossLite/Scheduler/SchedulerARC.py b/src/python/ProdCommon/BossLite/Scheduler/SchedulerARC.py index 70bc6a7..c62cb20 100644 --- a/src/python/ProdCommon/BossLite/Scheduler/SchedulerARC.py +++ b/src/python/ProdCommon/BossLite/Scheduler/SchedulerARC.py @@ -606,7 +606,7 @@ def getClusters(self): elif not c["cluster"] and line.find("Name:") >= 0: c["cluster"] = line.split(': ')[1] - clusters.append(c) + if c["cluster"]: clusters.append(c) return clusters