r2lab is migrating from a previous depl. based on omf_sfa
[plcapi.git] / PLC / Methods / GetRoles.py
index 9f7e7b1..fb905e5 100644 (file)
@@ -9,7 +9,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 +18,4 @@ class GetRoles(Method):
     returns = [Role.fields]
 
     def call(self, auth):
-       return Roles(self.api).values()
+        return Roles(self.api)