- added 'message' instance variable (high level description of this event)
[plcapi.git] / PLC / Methods / GetRoles.py
index 1a2c196..7d7c264 100644 (file)
@@ -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,11 @@ 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)