X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetRoles.py;h=fb905e59774fa280ed1bbeb3f9a5042599a4e5dd;hb=bd0cbf4f7f2e4cf7ceda500bfa6f98c0a700018b;hp=ba15ee113ededc34d08dd4d3a16e9ba15ebaee25;hpb=8e199f468aaf48ac1dad3090c149711f38aa6c38;p=plcapi.git diff --git a/PLC/Methods/GetRoles.py b/PLC/Methods/GetRoles.py index ba15ee1..fb905e5 100644 --- a/PLC/Methods/GetRoles.py +++ b/PLC/Methods/GetRoles.py @@ -9,16 +9,13 @@ class GetRoles(Method): Get an array of structs containing details about all roles. """ - roles = ['admin', 'pi', 'user', 'tech'] + roles = ['admin', 'pi', 'user', 'tech', 'node'] accepts = [ Auth() ] returns = [Role.fields] - - event_type = 'Get' - object_type = 'Role' def call(self, auth): - return Roles(self.api) + return Roles(self.api)