From d22a8adc6a6e1fd1c2d342432783f50723b31215 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 13 Oct 2006 19:21:55 +0000 Subject: [PATCH] - turn each attribute into a real dict before returning --- PLC/Methods/GetAttributes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PLC/Methods/GetAttributes.py b/PLC/Methods/GetAttributes.py index 87b4b432..5b5ea9f7 100644 --- a/PLC/Methods/GetAttributes.py +++ b/PLC/Methods/GetAttributes.py @@ -23,5 +23,8 @@ class GetAttributes(Method): def call(self, auth, attribute_id_or_name_list = None): # Get slice attribute information attributes = Attributes(self.api, attribute_id_or_name_list).values() + + # Turn each attribute into a real dict. + attributes = [dict(attribute.items()) for attribute in attributes] return attributes -- 2.47.0