Commit d567bd7c authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: report software url of the linked instance, even if it is in...

slapos_cloud: report software url of the linked instance, even if it is in destroyed_state / invalidated
parent e57cfcd4
......@@ -13,14 +13,13 @@ elif slap_state == 'busy':
instance = portal.portal_catalog.getResultValue(
portal_type="Software Instance",
validation_state="validated",
aggregate__uid=context.getUid(),
)
if (instance is None) or (instance.getSlapState() not in ["start_requested", "stop_requested"]):
if (instance is None):
# XXX Not very elegant
if (compute_node.getPortalType() == 'Remote Node') and (context.getId() == 'SHARED_REMOTE'):
return ['ANY_URL']
return []
return ['INSTANCE NOT INDEXED YET']
else:
return [instance.getUrlString()]
......
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