- add node to acceptable roles
authorMark Huang <mlhuang@cs.princeton.edu>
Fri, 3 Nov 2006 15:00:32 +0000 (15:00 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Fri, 3 Nov 2006 15:00:32 +0000 (15:00 +0000)
PLC/Methods/BootUpdateNode.py

index e612bdf..42cf861 100644 (file)
@@ -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):