Commit 13e89bc5 authored by Romain Courteaud's avatar Romain Courteaud Committed by Łukasz Nowak

Do not request the root instance all the time.

There is no need to get the root software instance, as the hosting subscription already contains the needed information
parent d4a7209b
......@@ -107,11 +107,7 @@ if (portal.portal_activities.countMessageWithTag(tag) > 0):\n
# As it is not possible to fetch informations, it is better to raise an error\n
raise NotImplementedError(tag)\n
\n
root_software_instance = root_hosting_subscription.HostingSubscription_requestRootSoftwareInstance(tag)\n
\n
# above query does not find root software instance, but as this case is easy\n
# to find, just check if such request does not come and raise\n
if root_software_instance.getTitle() == requested_partition_reference:\n
if root_hosting_subscription.getTitle() == requested_partition_reference:\n
raise ValueError(\'It is disallowed to request root software instance\')\n
\n
if (request_software_instance is None):\n
......
400
\ No newline at end of file
401
\ 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