Commit 16850bc7 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Migrate Successor/Predecessor when migrate HS into Instance Tree

   This save us double indexation activities triggerred on different moments.
parent d3f8235e
...@@ -133,8 +133,9 @@ def HostingSubscription_checkInstanceTreeMigrationConsistency(self, fixit=False) ...@@ -133,8 +133,9 @@ def HostingSubscription_checkInstanceTreeMigrationConsistency(self, fixit=False)
instance_tree = portal.instance_tree_module._getOb(hosting_subscription_id) instance_tree = portal.instance_tree_module._getOb(hosting_subscription_id)
instance_tree.reindexObject() instance_tree.reindexObject()
# Migrate Predecessor/Successor if the instance wasn't migrated before.
instance_tree.SoftwareInstance_checkPredecessorToSuccessorMigrationConsistency(fixit=True)
UnrestrictedMethod(instance_tree.updateRelatedContent)(hosting_subscription_relative_url, instance_tree.getRelativeUrl()) UnrestrictedMethod(instance_tree.updateRelatedContent)(hosting_subscription_relative_url, instance_tree.getRelativeUrl())
# raise NotImplementedError('couscous')
return error_list return error_list
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