Avoid failing if we can't get the future data
This commit is contained in:
parent
330cf14638
commit
5ffabcfef5
|
@ -897,6 +897,9 @@ def get_list(zkhandler, node, state, limit, is_fuzzy=True):
|
||||||
for vm_uuid in vm_execute_list:
|
for vm_uuid in vm_execute_list:
|
||||||
futures.append(executor.submit(common.getInformationFromXML, zkhandler, vm_uuid))
|
futures.append(executor.submit(common.getInformationFromXML, zkhandler, vm_uuid))
|
||||||
for future in futures:
|
for future in futures:
|
||||||
vm_data_list.append(future.result())
|
try:
|
||||||
|
vm_data_list.append(future.result())
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
return True, vm_data_list
|
return True, vm_data_list
|
||||||
|
|
Loading…
Reference in New Issue