Commit 5846952c authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Titouan Soulard

slapos_jio_api_style: approve registration is a parameter of createCompute Node

parent 135cf8ae
...@@ -11,6 +11,7 @@ if person is None: ...@@ -11,6 +11,7 @@ if person is None:
request_kw = dict( request_kw = dict(
compute_node_title=data_dict.get("title", None), compute_node_title=data_dict.get("title", None),
approve_registration=approve_registration,
) )
person.requestComputeNode(**request_kw) person.requestComputeNode(**request_kw)
compute_node = context.restrictedTraverse(context.REQUEST.get('compute_node')) compute_node = context.restrictedTraverse(context.REQUEST.get('compute_node'))
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>data_dict, form_reference</string> </value> <value> <string>data_dict, form_reference, approve_registration=True</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
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