From 45e1fc921c3dce7c58e6b8d73bba5b376a5491a1 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Fri, 3 Nov 2006 15:00:32 +0000 Subject: [PATCH] - add node to acceptable roles --- PLC/Methods/BootUpdateNode.py | 3 +++ 1 file changed, 3 insertions(+) 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): -- 2.47.0