Commit 0bd3d6bb authored by Romain Courteaud's avatar Romain Courteaud

slapos_subscription_request: use souce_project to find the trade condition

no need to trick source/destination project anymore, as trade_condition_type is used
parent b4df6914
...@@ -17,7 +17,7 @@ elif resource.getPortalType() == "Service": ...@@ -17,7 +17,7 @@ elif resource.getPortalType() == "Service":
if resource.getRelativeUrl() == "service_module/slapos_compute_node_subscription": if resource.getRelativeUrl() == "service_module/slapos_compute_node_subscription":
if project_value is None: if project_value is None:
raise AssertionError('A project is required for %s %s' % (resource.getRelativeUrl(), project_value)) raise AssertionError('A project is required for %s %s' % (resource.getRelativeUrl(), project_value))
destination_project_value = project_value source_project_value = project_value
trade_condition_type = "compute_node" trade_condition_type = "compute_node"
elif resource.getRelativeUrl() == "service_module/slapos_virtual_master_subscription": elif resource.getRelativeUrl() == "service_module/slapos_virtual_master_subscription":
......
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