Commit 51979277 authored by Antoine Catton's avatar Antoine Catton

Reattach Root Software Instance to Hosting Subscription.

parent beda0b5f
...@@ -196,6 +196,14 @@ else:\n ...@@ -196,6 +196,14 @@ else:\n
sla_xml=hosting_subscription.getSlaXml(),\n sla_xml=hosting_subscription.getSlaXml(),\n
activate_kw={\'tag\': tag},\n activate_kw={\'tag\': tag},\n
)\n )\n
for predecessor_related in request_software_instance.getPredecessorRelatedValueList():\n
predecessor_list = predecessor_related.getPredecessorList()\n
predecessor_list.remove(request_software_instance.getRelativeUrl())\n
predecessor_related.setPredecessorList(predecessor_list)\n
\n
hosting_subscription_predecessor_list = hosting_subscription.getPredecessorList()\n
hosting_subscription_predecessor_list.append(request_software_instance.getRelativeUrl())\n
hosting_subscription.setPredecessorList(hosting_subscription_predecessor_list)\n
\n \n
if hosting_subscription.getRootState() == \'started\':\n if hosting_subscription.getRootState() == \'started\':\n
request_software_instance.startRequested()\n request_software_instance.startRequested()\n
......
506 507
\ 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