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:
575d127
)
- fix AdmGetAllNodeNetworks() to return node networks only for specified node
author
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 16 Oct 2006 19:56:07 +0000
(19:56 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 16 Oct 2006 19:56:07 +0000
(19:56 +0000)
PLC/Methods/AdmGetAllNodeNetworks.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/AdmGetAllNodeNetworks.py
b/PLC/Methods/AdmGetAllNodeNetworks.py
index
fc40ad6
..
0dd73e3
100644
(file)
--- a/
PLC/Methods/AdmGetAllNodeNetworks.py
+++ b/
PLC/Methods/AdmGetAllNodeNetworks.py
@@
-34,13
+34,4
@@
class AdmGetAllNodeNetworks(GetNodeNetworks):
raise PLCInvalidArgument, "No such node"
node = nodes[0]
- # Get node networks for this node
- if node['nodenetwork_ids']:
- nodenetworks = NodeNetworks(self.api, node['nodenetwork_ids']).values()
- else:
- nodenetworks = []
-
- # Cast from NodeNetwork to real dict
- nodenetworks = [dict(nodenetwork) for nodenetwork in nodenetworks]
-
- return nodenetworks
+ return GetNodeNetworks.call(self, auth, node['nodenetwork_ids'])