X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetSliceFamily.py;h=f1f8dcc9df739949a88d890eb86bfd0519645cc4;hb=f7ce7ce813d4c44502629820a3583f32a99a98f7;hp=512cbb17a641c94ca617a4180be3097c6baaeff0;hpb=9a608e111c7f8182f51753ea3f563ebc19eb4c71;p=plcapi.git diff --git a/PLC/Methods/GetSliceFamily.py b/PLC/Methods/GetSliceFamily.py index 512cbb1..f1f8dcc 100644 --- a/PLC/Methods/GetSliceFamily.py +++ b/PLC/Methods/GetSliceFamily.py @@ -6,8 +6,8 @@ from PLC.Faults import * from PLC.Parameter import * from PLC.Slices import Slice, Slices -from PLC.Accessors.Accessors_standard import * # import slice accessors -from PLC.Accessors.Accessors_omf import * # import slice accessors +from PLC.Accessors.Accessors_standard import * # import slice accessors +from PLC.Accessors.Accessors_omf import * # import slice accessors class GetSliceFamily(Method): """ @@ -28,9 +28,9 @@ class GetSliceFamily(Method): returns = Parameter (str, "the slicefamily this slice should be based upon") - # + # ### system slices - at least planetflow - still rely on 'vref' - # + # def call(self, auth, slice_id_or_name): # Get slice information slices = Slices(self.api, [slice_id_or_name]) @@ -59,7 +59,7 @@ class GetSliceFamily(Method): # xxx would make sense to check the corresponding vserver rpms are available # in all node-families yum repos (and yumgroups, btw) - if vref: + if vref: return "%s-%s-%s"%(vref,fcdistro,arch) else: return "%s-%s-%s"%(pldistro,fcdistro,arch)