X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FUpdateNode.py;h=6f60a46298caa342cadcb21666cb40de9e81876b;hb=405f2d547603094beb95ef7ab222f776959598d3;hp=ecfa6cf3e161e778fb99fcf51daa9dacbabc78d8;hpb=a9deca6a167f770cabf80faf0b2db3d0a797a67e;p=plcapi.git diff --git a/PLC/Methods/UpdateNode.py b/PLC/Methods/UpdateNode.py index ecfa6cf..6f60a46 100644 --- a/PLC/Methods/UpdateNode.py +++ b/PLC/Methods/UpdateNode.py @@ -27,13 +27,13 @@ class UpdateNode(Method): 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']), - node_fields + accepted_fields ] returns = Parameter(int, '1 if successful')