- fix AdmGetAllNodeNetworks() to return node networks only for specified node
authorMark Huang <mlhuang@cs.princeton.edu>
Mon, 16 Oct 2006 19:56:07 +0000 (19:56 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Mon, 16 Oct 2006 19:56:07 +0000 (19:56 +0000)
PLC/Methods/AdmGetAllNodeNetworks.py

index fc40ad6..0dd73e3 100644 (file)
@@ -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'])