From: Tony Mack Date: Fri, 13 Oct 2006 19:29:41 +0000 (+0000) Subject: - turn each pcu into a real dict before returning X-Git-Tag: pycurl-7_13_1~586 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7263fd80ca13edb144e2fefe0f2e46d0a7c7ff00;p=plcapi.git - turn each pcu into a real dict before returning --- diff --git a/PLC/Methods/GetPCUs.py b/PLC/Methods/GetPCUs.py index 93511b2c..266d45ff 100644 --- a/PLC/Methods/GetPCUs.py +++ b/PLC/Methods/GetPCUs.py @@ -31,4 +31,9 @@ class GetPCUs(Method): for site in sites: pcu_ids = set(pcu_ids).union(site['pcu_ids']) - return PCUs(self.api, pcu_ids).values() + pcus = PCUs(self.api, pcu_ids).values() + + # turn each pcu into a real dict + pcus = [dict(pcu.items()) for pcu in pcus] + + return PCUs(self.api, pcu_ids).values()