Commit 77d39d14 authored by Antoine Catton's avatar Antoine Catton

Bugfix in root renaming

parent 42c516e4
......@@ -63,14 +63,18 @@ parent = software_instance.getPredecessorRelatedValue(\n
portal_type=["Hosting Subscription", "Software Instance", "Slave Instance"]\n
)\n
\n
parent_predecessor_list = parent.getPredecessorValueList()\n
hosting_subscription_predecessor_list = hosting_subscription.getPredecessorValueList()\n
if parent is not hosting_subscription:\n
\n
tmp = parent_predecessor_list.pop(parent_predecessor_list.index(software_instance))\n
hosting_subscription_predecessor_list.append(tmp)\n
parent_predecessor_list = parent.getPredecessorValueList()\n
hosting_subscription_predecessor_list = hosting_subscription.getPredecessorValueList()\n
\n
hosting_subscription.setPredecessorValueList(hosting_subscription_predecessor_list)\n
parent.setPredecessorValueList(parent_predecessor_list)\n
\n
hosting_subscription_predecessor_list.append(\n
parent_predecessor_list.pop(parent_predecessor_list.index(software_instance))\n
)\n
\n
hosting_subscription.setPredecessorValueList(hosting_subscription_predecessor_list)\n
parent.setPredecessorValueList(parent_predecessor_list)\n
</string> </value>
</item>
<item>
......
342
\ No newline at end of file
343
\ 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