Handle a no-valid-nodes situation

This commit is contained in:
Joshua Boniface 2019-06-21 11:37:35 -04:00
parent f3e9082376
commit c63b5a8056
1 changed files with 4 additions and 0 deletions

View File

@ -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
#