X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetRoles.py;h=a53d775e58f7ecca4f0a5eef028333ba01146752;hb=16889a64d9fd498cca4dcd2705b28b2c0b7ea5c6;hp=df7dce55733ddf9f3599461dd6b0a1d6698dcf27;hpb=c8005424dcfa9e09275402d6e8bacbc989e92174;p=plcapi.git diff --git a/PLC/Methods/GetRoles.py b/PLC/Methods/GetRoles.py index df7dce5..a53d775 100644 --- a/PLC/Methods/GetRoles.py +++ b/PLC/Methods/GetRoles.py @@ -2,7 +2,7 @@ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed from PLC.Roles import Role, Roles -from PLC.Auth import PasswordAuth +from PLC.Auth import Auth class GetRoles(Method): """ @@ -12,10 +12,10 @@ class GetRoles(Method): roles = ['admin', 'pi', 'user', 'tech'] accepts = [ - PasswordAuth() + Auth() ] returns = [Role.fields] def call(self, auth): - return Roles(self.api).values() + return Roles(self.api)