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

Do not try to unallocate non destroyed instances.

parent ea9028d3
...@@ -51,6 +51,9 @@ ...@@ -51,6 +51,9 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>instance = context\n <value> <string>instance = context\n
if instance.getSlapState() != \'destroy_requested\':\n
return\n
\n
partition = instance.getAggregateValue(portal_type="Computer Partition")\n partition = instance.getAggregateValue(portal_type="Computer Partition")\n
portal = instance.getPortalObject()\n portal = instance.getPortalObject()\n
if partition is not None:\n if partition is not None:\n
......
234 235
\ 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