r2lab is migrating from a previous depl. based on omf_sfa
[plcapi.git] / PLC / Methods / GetRoles.py
index ba15ee1..fb905e5 100644 (file)
@@ -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)