git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cast instead of rebuilding dict when returning lists of dicts
[plcapi.git]
/
PLC
/
Methods
/
GetNodes.py
diff --git
a/PLC/Methods/GetNodes.py
b/PLC/Methods/GetNodes.py
index
2b270d0
..
dafc53f
100644
(file)
--- a/
PLC/Methods/GetNodes.py
+++ b/
PLC/Methods/GetNodes.py
@@
-47,6
+47,6
@@
class GetNodes(Method):
nodes = Nodes(self.api, node_id_or_hostname_list).values()
# turn each node into a real dict.
- nodes = [dict(node
.items()
) for node in nodes]
+ nodes = [dict(node) for node in nodes]
return nodes