Commit 4d304734 authored by Romain Courteaud's avatar Romain Courteaud

slapos_subscription_request: invert source_project/destination_project

parent c196b494
......@@ -10,13 +10,15 @@ trade_condition_type = None
item = None
if resource.getPortalType() == "Software Product":
destination_project_value = project_value
source_project_value = project_value
trade_condition_type = "instance_tree"
elif resource.getPortalType() == "Service":
if resource.getRelativeUrl() == "service_module/slapos_compute_node_subscription":
if project_value is None:
raise AssertionError('A project is required for %s %s' % (resource.getRelativeUrl(), project_value))
source_project_value = project_value
destination_project_value = project_value
trade_condition_type = "compute_node"
elif resource.getRelativeUrl() == "service_module/slapos_virtual_master_subscription":
if project_value is None:
......
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