git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90c27a5
)
- turn each attribute into a real dict before returning
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 13 Oct 2006 19:21:55 +0000
(19:21 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 13 Oct 2006 19:21:55 +0000
(19:21 +0000)
PLC/Methods/GetAttributes.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/GetAttributes.py
b/PLC/Methods/GetAttributes.py
index
87b4b43
..
5b5ea9f
100644
(file)
--- 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