Commit 79b9182b authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: do not crash if no instance is found

parent ec040fbf
......@@ -20,11 +20,11 @@ if compute_partition.getId() == 'SHARED_REMOTE':
)
else:
local_instance_list = [portal.portal_catalog.getResultValue(
local_instance_list = portal.portal_catalog(
portal_type='Software Instance',
aggregate__uid=compute_partition.getUid(),
validation_state='validated'
)]
)
for local_instance in local_instance_list:
......
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