Commit 28102c31 authored by Antoine Catton's avatar Antoine Catton

Buxfix on root re-request.

parent 6094126a
......@@ -103,6 +103,13 @@ if request_software_instance is None:\n
context.setPredecessorValueList(\n
context.getPredecessorValueList() + [request_software_instance]\n
)\n
\n
if not person_request:\n
request_software_instance.requestComputerPartition(\n
software_release=context.getRootSoftwareUrl(),\n
hosting_subscription_uid=context.getUid(),\n
software_type=context.getSourceReference(),\n
tag=tag)\n
\n
if context.getRootState() == \'started\':\n
request_software_instance.startRequested()\n
......@@ -129,7 +136,7 @@ return request_software_instance\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>tag</string> </value>
<value> <string>tag, person_request=False</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -119,10 +119,10 @@ if request_hosting_subscription is None:\n
text_content=instance_xml,\n
sla_xml=sla_xml,\n
root_state=state,\n
software_release_url=software_release_url_string,\n
root_software_release_url=software_release_url_string,\n
root_slave=is_slave,\n
)\n
software_instance = subscription.HostingSubscription_requestRootSoftwareInstance(tag)\n
software_instance = subscription.HostingSubscription_requestRootSoftwareInstance(tag, person_request=True)\n
\n
software_release_document = context.portal_catalog.getResultValue(\n
portal_type=\'Software Release\',\n
......
452
\ No newline at end of file
453
\ 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