From: Tony Mack <tmack@cs.princeton.edu>
Date: Fri, 13 Oct 2006 19:21:55 +0000 (+0000)
Subject: - turn each attribute into a real dict before returning
X-Git-Tag: pycurl-7_13_1~587
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d22a8adc6a6e1fd1c2d342432783f50723b31215;p=plcapi.git

- turn each attribute into a real dict before returning
---

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