Handle a no-valid-nodes situation
This commit is contained in:
parent
f3e9082376
commit
c63b5a8056
|
@ -223,6 +223,10 @@ def getNodes(zk_conn, dom_uuid):
|
|||
|
||||
valid_node_list.append(node)
|
||||
|
||||
if not valid_node_list:
|
||||
# We found no valid nodes; possibly they're all flushed or all down. Return the entire list instead.
|
||||
valid_node_list = full_node_list
|
||||
|
||||
return valid_node_list
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue