From 7263fd80ca13edb144e2fefe0f2e46d0a7c7ff00 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 13 Oct 2006 19:29:41 +0000 Subject: [PATCH] - turn each pcu into a real dict before returning --- PLC/Methods/GetPCUs.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() -- 2.47.0