Commit e812570f authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: no need to check twice the object portal type

parent 5f46d123
......@@ -3,8 +3,7 @@ if context.getSimulationState() == "invalidated":
document = context.getAggregateValue(portal_type="Instance Tree")
if document is None:
return
return
if document.getPortalType() == "Instance Tree":
if document.getSlapState() == "destroy_requested":
return context.SupportRequest_updateMonitoringDestroyRequestedState()
if document.getSlapState() == "destroy_requested":
return context.SupportRequest_updateMonitoringDestroyRequestedState()
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