From: Mark Huang Date: Fri, 3 Nov 2006 15:00:32 +0000 (+0000) Subject: - add node to acceptable roles X-Git-Tag: pycurl-7_13_1~390 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=45e1fc921c3dce7c58e6b8d73bba5b376a5491a1;p=plcapi.git - add node to acceptable roles --- diff --git a/PLC/Methods/BootUpdateNode.py b/PLC/Methods/BootUpdateNode.py index e612bdfd..42cf8617 100644 --- a/PLC/Methods/BootUpdateNode.py +++ b/PLC/Methods/BootUpdateNode.py @@ -17,6 +17,8 @@ class BootUpdateNode(Method): Returns 1 if updated successfully. """ + roles = ['node'] + nodenetwork_fields = dict(filter(can_update, NodeNetwork.fields.items())) accepts = [ @@ -25,6 +27,7 @@ class BootUpdateNode(Method): 'primary_network': nodenetwork_fields, 'ssh_host_key': Node.fields['ssh_rsa_key']} ] + returns = Parameter(int, '1 if successful') def call(self, auth, node_fields):