git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops
[plcapi.git]
/
PLC
/
Methods
/
UpdateNode.py
diff --git
a/PLC/Methods/UpdateNode.py
b/PLC/Methods/UpdateNode.py
index
ecfa6cf
..
6f60a46
100644
(file)
--- a/
PLC/Methods/UpdateNode.py
+++ b/
PLC/Methods/UpdateNode.py
@@
-27,13
+27,13
@@
class UpdateNode(Method):
roles = ['admin', 'pi', 'tech']
roles = ['admin', 'pi', 'tech']
-
node
_fields = Row.accepted_fields(can_update,[Node.fields,Node.related_fields,Node.tags])
+
accepted
_fields = Row.accepted_fields(can_update,[Node.fields,Node.related_fields,Node.tags])
accepts = [
Auth(),
Mixed(Node.fields['node_id'],
Node.fields['hostname']),
accepts = [
Auth(),
Mixed(Node.fields['node_id'],
Node.fields['hostname']),
-
node
_fields
+
accepted
_fields
]
returns = Parameter(int, '1 if successful')
]
returns = Parameter(int, '1 if successful')