Avoid failing if we can't get the future data

This commit is contained in:
Joshua Boniface 2021-07-09 13:05:37 -04:00
parent 330cf14638
commit 5ffabcfef5
1 changed files with 4 additions and 1 deletions

View File

@ -897,6 +897,9 @@ def get_list(zkhandler, node, state, limit, is_fuzzy=True):
for vm_uuid in vm_execute_list:
futures.append(executor.submit(common.getInformationFromXML, zkhandler, vm_uuid))
for future in futures:
try:
vm_data_list.append(future.result())
except Exception:
pass
return True, vm_data_list