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