Commit f30631b7 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

slapos_cloud: Do not automatically approve computer registration

parent c219f1fb
...@@ -39,7 +39,8 @@ if compute_node is None: ...@@ -39,7 +39,8 @@ if compute_node is None:
activate_kw={'tag': tag} activate_kw={'tag': tag}
) )
compute_node.requestComputeNodeRegistration() compute_node.requestComputeNodeRegistration()
compute_node.approveComputeNodeRegistration() if kwargs.get("approve_registration", True):
compute_node.approveComputeNodeRegistration()
context.REQUEST.set("compute_node", compute_node.getRelativeUrl()) context.REQUEST.set("compute_node", compute_node.getRelativeUrl())
context.REQUEST.set("compute_node_url", compute_node.absolute_url()) context.REQUEST.set("compute_node_url", compute_node.absolute_url())
......
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