Commit 3adcd212 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Also Stop hosting subscription on Delete Acknowledgement

  This is a safe measure in case the alarm to delete the instance is temporarily disabled.
parent ca2d4324
......@@ -6,6 +6,7 @@ portal.portal_catalog.searchAndActivate(
default_resource_uid=[
portal.service_module.slapos_crm_stop_acknowledgement.getUid(),
portal.service_module.slapos_crm_delete_reminder.getUid(),
portal.service_module.slapos_crm_delete_acknowledgement.getUid(),
],
method_id='RegularisationRequest_stopHostingSubscriptionList',
method_args=(sub_tag,),
......
......@@ -7,7 +7,7 @@ state = ticket.getSimulationState()
person = ticket.getSourceProjectValue(portal_type="Person")
if (state == 'suspended') and \
(person is not None) and \
(ticket.getResource() in ['service_module/slapos_crm_stop_acknowledgement', 'service_module/slapos_crm_delete_reminder']):
(ticket.getResource() in ['service_module/slapos_crm_stop_acknowledgement', 'service_module/slapos_crm_delete_reminder', 'service_module/slapos_crm_delete_acknowledgement']):
portal = context.getPortalObject()
portal.portal_catalog.searchAndActivate(
......
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