X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetSliceInstantiations.py;h=174c2095d2de354d7167f99f4e2687ed0bb35569;hb=c292f0b768fcaa05218cf5ffdda5672e6ea9ffe6;hp=1cfcee923043eeb9e2680222ea7f1713d2a2fb32;hpb=03f03eb21ef66571e98d61c0b0c56bdb861062a7;p=plcapi.git diff --git a/PLC/Methods/GetSliceInstantiations.py b/PLC/Methods/GetSliceInstantiations.py index 1cfcee9..174c209 100644 --- a/PLC/Methods/GetSliceInstantiations.py +++ b/PLC/Methods/GetSliceInstantiations.py @@ -9,7 +9,7 @@ class GetSliceInstantiations(Method): Returns an array of all valid slice instantiation states. """ - roles = ['admin', 'pi', 'user', 'tech'] + roles = ['admin', 'pi', 'user', 'tech', 'node'] accepts = [ Auth() @@ -17,6 +17,5 @@ class GetSliceInstantiations(Method): returns = [SliceInstantiation.fields['instantiation']] - def call(self, auth): return [slice_instantiation['instantiation'] for slice_instantiation in SliceInstantiations(self.api)]