From 33f6b5e04daddba3bb49e6e7f8edb527c0b02550 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 13 Oct 2006 19:33:06 +0000 Subject: [PATCH] - turn each role into a real dict before returning --- PLC/Methods/GetRoles.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PLC/Methods/GetRoles.py b/PLC/Methods/GetRoles.py index 1a2c1967..68264763 100644 --- a/PLC/Methods/GetRoles.py +++ b/PLC/Methods/GetRoles.py @@ -18,4 +18,10 @@ class GetRoles(Method): returns = [Role.fields] def call(self, auth): - return Roles(self.api).values() + + roles = Roles(self.api).values() + + #turn each role into a real dict + roles = [dict(role.items()) for role in roles] + + return roles -- 2.47.0