Commit f857cd33 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: only search compute node from the same project

parent 635e8ec4
...@@ -29,7 +29,12 @@ if len(project_list) != 1: ...@@ -29,7 +29,12 @@ if len(project_list) != 1:
raise NotImplementedError("%i projects '%s'" % (len(project_list), project_reference)) raise NotImplementedError("%i projects '%s'" % (len(project_list), project_reference))
compute_node_portal_type = "Compute Node" compute_node_portal_type = "Compute Node"
compute_node_list = portal.portal_catalog.portal_catalog(portal_type=compute_node_portal_type, title=compute_node_title, limit=2) compute_node_list = portal.portal_catalog.portal_catalog(
portal_type=compute_node_portal_type,
title=compute_node_title,
follow_up__uid=project_list[0].getUid(),
limit=2
)
if len(compute_node_list) == 2: if len(compute_node_list) == 2:
raise NotImplementedError raise NotImplementedError
......
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