Commit dffafc68 authored by Łukasz Nowak's avatar Łukasz Nowak

Fix post merge issue.

Script is used on Hosting Subscription too, so such portal type shall be
protected against duplicates.
parent ed97f9ce
...@@ -145,11 +145,12 @@ else:\n ...@@ -145,11 +145,12 @@ else:\n
if (predecessor is None):\n if (predecessor is None):\n
if (requester_instance.getPortalType() != "Hosting Subscription"):\n if (requester_instance.getPortalType() != "Hosting Subscription"):\n
raise ValueError(\'It is disallowed to request root software instance %s\' % request_software_instance.getRelativeUrl())\n raise ValueError(\'It is disallowed to request root software instance %s\' % request_software_instance.getRelativeUrl())\n
else:\n else:\n
predecessor_uid_list = predecessor.getPredecessorUidList()\n predecessor = requester_instance\n
predecessor_uid_list.remove(request_software_instance.getUid())\n predecessor_uid_list = predecessor.getPredecessorUidList()\n
predecessor.edit(predecessor_uid_list=predecessor_uid_list)\n predecessor_uid_list.remove(request_software_instance.getUid())\n
graph[predecessor.getUid()] = predecessor_uid_list\n predecessor.edit(predecessor_uid_list=predecessor_uid_list)\n
graph[predecessor.getUid()] = predecessor_uid_list\n
\n \n
# Change desired state\n # Change desired state\n
promise_kw = {\n promise_kw = {\n
......
22 23
\ 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