iteration 4 & last:
[plcapi.git] / PLC / Methods / DeleteSliceFromNodes.py
index d3e31f0..ce46929 100644 (file)
@@ -2,7 +2,6 @@ from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
 from PLC.Nodes import Node, Nodes
-from PLC.ForeignNodes import ForeignNode, ForeignNodes
 from PLC.Slices import Slice, Slices
 from PLC.Auth import Auth
 
@@ -49,14 +48,12 @@ class DeleteSliceFromNodes(Method):
 
        # Get specified nodes
         nodes = Nodes(self.api, node_id_or_hostname_list)
-        foreign_nodes = ForeignNodes(self.api, node_id_or_hostname_list)
-        all_nodes = nodes+foreign_nodes;
-       for node in all_nodes:
+       for node in nodes:
             if slice['slice_id'] in node['slice_ids']:
                 slice.remove_node(node, commit = False)
 
         slice.sync()
        
-       self.object_ids = [node['node_id'] for node in all_nodes]
+       self.object_ids = [node['node_id'] for node in nodes]
 
         return 1