From: Mark Huang Date: Mon, 16 Oct 2006 19:56:07 +0000 (+0000) Subject: - fix AdmGetAllNodeNetworks() to return node networks only for specified node X-Git-Tag: pycurl-7_13_1~556 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=55fe7cdeaaad4c650261e3bf414297c3fbc95259;p=plcapi.git - fix AdmGetAllNodeNetworks() to return node networks only for specified node --- diff --git a/PLC/Methods/AdmGetAllNodeNetworks.py b/PLC/Methods/AdmGetAllNodeNetworks.py index fc40ad68..0dd73e32 100644 --- 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'])