Commit db4a2b95 authored by Jameson Rollins's avatar Jameson Rollins

NodeManager.not_ok() method to return set of nodes without OK status

parent d2fa803a
......@@ -445,6 +445,14 @@ class NodeManager(object):
log("Reviving stalled node: %s" % node.name)
node.revive()
def not_ok(self):
"""Return set of nodes not currently reporting OK status."""
notok = set()
for node in self:
if not node.OK:
notok.add(node.name)
return notok
def check_fault(self):
"""Check fault status of all nodes.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment