X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FSliceNodesList.py;h=fd61b65f9b2a2da7e183645b5176ff3e1ead0514;hb=929d1cbbc300f8a33cf0cfe9d6add3b898e0c552;hp=81cdff413910ee3249ed12bc45052e0c2c12a157;hpb=12d17e7f285289f67146404be7bfe8862daf731c;p=plcapi.git diff --git a/PLC/Methods/SliceNodesList.py b/PLC/Methods/SliceNodesList.py index 81cdff4..fd61b65 100644 --- a/PLC/Methods/SliceNodesList.py +++ b/PLC/Methods/SliceNodesList.py @@ -6,7 +6,7 @@ from PLC.Slices import Slice, Slices from PLC.Nodes import Node, Nodes from PLC.Methods.GetSlices import GetSlices -class SliceNodesList(Method): +class SliceNodesList(GetSlices): """ Deprecated. Can be implemented with GetSlices. @@ -25,9 +25,7 @@ class SliceNodesList(Method): def call(self, auth, slice_name): - # If we are not admin, make sure to return only viewable - # slices. - slices = GetSlices(self, auth, [slice_name]) + slices = GetSlices.call(self, auth, [slice_name]) slice = slices[0] nodes = Nodes(self.api, slice['node_ids']) if not nodes: