git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
363b028
)
- add node to acceptable roles
author
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 3 Nov 2006 15:00:32 +0000
(15:00 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 3 Nov 2006 15:00:32 +0000
(15:00 +0000)
PLC/Methods/BootUpdateNode.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/BootUpdateNode.py
b/PLC/Methods/BootUpdateNode.py
index
e612bdf
..
42cf861
100644
(file)
--- 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):