From: Tony Mack Date: Fri, 13 Oct 2006 19:33:06 +0000 (+0000) Subject: - turn each role into a real dict before returning X-Git-Tag: pycurl-7_13_1~585 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=33f6b5e04daddba3bb49e6e7f8edb527c0b02550;p=plcapi.git - turn each role into a real dict before returning --- 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