Commit 39e46b81 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: While migrate, expire friend category

parent a3f1f9ac
......@@ -6,6 +6,12 @@ if category is None:
# Category already migrated nothing to do
return []
if category.getValidationState() != "expired":
if fixit:
category.expire(comment="Expired by Migration Constraint")
else:
result_list.append("allocation_scope/friend exists and isn't expired")
migration_kw = {
'portal_type': 'Compute Node',
'default_allocation_scope_uid': category.getUid()
......
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