Commit d67c5c88 authored by Łukasz Nowak's avatar Łukasz Nowak

Use proper method.

parent 1a2b4552
......@@ -61,9 +61,7 @@ now = DateTime()\n
if hosting_subscription.getAggregateRelatedValue(portal_type=\'Sale Order Line\').getParentValue().getDestinationSectionValue().getReference() == \'seleniumtester\' and \\\n
hosting_subscription.getModificationDate() < (now - 1):\n
if hosting_subscription.SoftwareInstance_getStatus() not in [\'Destroyed\', \'Destruction in progress\']:\n
software_instance = hosting_subscription.getPredecessorValue(portal_type=\'Software Instance\')\n
if software_instance is not None:\n
software_instance.requestDestroyComputerPartition(comment=\'Requested by clenaup alarm\', activate_kw={\'tag\': tag})\n
hosting_subscription.requestDestroy(comment=\'Requested by clenaup alarm\', activate_kw={\'tag\': tag})\n
]]></string> </value>
......
745
\ No newline at end of file
746
\ No newline at end of file
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