Commit 53f61021 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: XXX do not approve computer by default

TODO: create open order related to the computer usage
parent 643798e7
......@@ -25,9 +25,7 @@ if len(compute_node_list) == 2:
elif len(compute_node_list) == 1:
compute_node = compute_node_list[0]
else:
compute_node = None
if compute_node is None:
reference = "COMP-%s" % portal.portal_ids.generateNewId(
id_group='slap_computer_reference',
id_generator='uid')
......@@ -39,7 +37,6 @@ if compute_node is None:
activate_kw={'tag': tag}
)
compute_node.requestComputeNodeRegistration()
compute_node.approveComputeNodeRegistration()
compute_node = context.restrictedTraverse(compute_node.getRelativeUrl())
......
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