Commit 8e6d8d06 authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: no need to check twice the object portal type

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