added policy.py and updated bootman.py to work with the new policy framework.
[monitor.git] / sitebad.py
index 5a2f3be..a0407c9 100755 (executable)
@@ -41,7 +41,7 @@ def getnodesup(nodelist):
        for node in nodelist:
                try:
                        nodehist = HistoryNodeRecord.findby_or_create(hostname=node['hostname'])
-                       if nodehist is not None and nodehist.status == "good":
+                       if nodehist is not None and nodehist.status != 'down':
                                up = up + 1
                except:
                        import traceback