X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetRoles.py;h=b6604714f9bc8a7e0bced12e10a6fa0ca069690d;hb=71a2b50be6b8cea74ae3f55afecbff3b28e5798d;hp=9f7e7b10e2705113b937efae215a41f89cf03bb9;hpb=1f8c38dd1357c93e4be8d94456b7274a591d2db4;p=plcapi.git diff --git a/PLC/Methods/GetRoles.py b/PLC/Methods/GetRoles.py index 9f7e7b1..b660471 100644 --- a/PLC/Methods/GetRoles.py +++ b/PLC/Methods/GetRoles.py @@ -1,3 +1,5 @@ +# $Id$ +# $URL$ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed @@ -9,7 +11,7 @@ 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() @@ -18,4 +20,4 @@ class GetRoles(Method): returns = [Role.fields] def call(self, auth): - return Roles(self.api).values() + return Roles(self.api)