From: Tony Mack Date: Mon, 20 Aug 2007 19:11:55 +0000 (+0000) Subject: - only query the node_fields we need X-Git-Tag: PLCAPI-4.2-0~90 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0af6eeb364abeadd0c6d4a35fec2b388504cfa3c;p=plcapi.git - only query the node_fields we need --- diff --git a/PLC/Methods/AddSliceToNodes.py b/PLC/Methods/AddSliceToNodes.py index 3cfd327f..ce8bb1c6 100644 --- a/PLC/Methods/AddSliceToNodes.py +++ b/PLC/Methods/AddSliceToNodes.py @@ -47,7 +47,7 @@ class AddSliceToNodes(Method): raise PLCPermissionDenied, "Specified slice not associated with any of your sites" # Get specified nodes, add them to the slice - nodes = Nodes(self.api, node_id_or_hostname_list) + nodes = Nodes(self.api, node_id_or_hostname_list, ['node_id', 'hostname', 'slice_ids', 'slice_ids_whitelist']) for node in nodes: # check the slice whitelist on each node first if node['slice_ids_whitelist'] and \