X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetNodeGroups.py;h=f4927efc5db887a2528cfd84785a263f8799b6a9;hb=49e875c7e14b95697e3d0c7502d8457d3ce6378c;hp=38d06180cb4c0f791efa8c68a8105b421cd06ed6;hpb=8e199f468aaf48ac1dad3090c149711f38aa6c38;p=plcapi.git diff --git a/PLC/Methods/GetNodeGroups.py b/PLC/Methods/GetNodeGroups.py index 38d0618..f4927ef 100644 --- a/PLC/Methods/GetNodeGroups.py +++ b/PLC/Methods/GetNodeGroups.py @@ -14,7 +14,7 @@ class GetNodeGroups(Method): is specified, only the specified details will be returned. """ - roles = ['admin', 'pi', 'user', 'tech'] + roles = ['admin', 'pi', 'user', 'tech', 'node', 'anonymous'] accepts = [ Auth(), @@ -25,8 +25,6 @@ class GetNodeGroups(Method): ] returns = [NodeGroup.fields] - event_type = 'Get' - object_type = 'NodeGroup' def call(self, auth, nodegroup_filter = None, return_fields = None): return NodeGroups(self.api, nodegroup_filter, return_fields)