Commit 46263eca authored by Łukasz Nowak's avatar Łukasz Nowak

Try create updation only when no cleanup is in progress.

parent e952bebc
...@@ -62,7 +62,11 @@ for software_instance in context.portal_catalog(\n ...@@ -62,7 +62,11 @@ for software_instance in context.portal_catalog(\n
portal_type=\'Software Instance\',\n portal_type=\'Software Instance\',\n
root_uid=root_software_instance.getUid()):\n root_uid=root_software_instance.getUid()):\n
software_instance = software_instance.getObject()\n software_instance = software_instance.getObject()\n
software_instance.activate().requestUpdateComputerPartition()\n try:\n
software_instance.Item_getInstancePackingListLine(service_relative_url=portal.portal_preferences.getPreferredInstanceCleanupResource())\n
except ValueError:\n
#no instance cleanup, there is sense to try to destroy\n
software_instance.activate().requestUpdateComputerPartition()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
317 318
\ No newline at end of file \ 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