- only query the node_fields we need
authorTony Mack <tmack@cs.princeton.edu>
Mon, 20 Aug 2007 19:11:55 +0000 (19:11 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Mon, 20 Aug 2007 19:11:55 +0000 (19:11 +0000)
PLC/Methods/AddSliceToNodes.py

index 3cfd327..ce8bb1c 100644 (file)
@@ -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 \