X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetSliceFamily.py;fp=PLC%2FMethods%2FGetSliceFamily.py;h=2a6e83078dce4f8262f355314f2eee2249c5b6d2;hb=41b097a10c1ac6dcd493b030d33194003369bdf1;hp=48b3f224df5c799a583116dd1475c9e395df974c;hpb=b3a391490764be17194820147b1cf47fff17b69a;p=plcapi.git diff --git a/PLC/Methods/GetSliceFamily.py b/PLC/Methods/GetSliceFamily.py index 48b3f22..2a6e830 100644 --- a/PLC/Methods/GetSliceFamily.py +++ b/PLC/Methods/GetSliceFamily.py @@ -50,10 +50,12 @@ class GetSliceFamily(Method): vref = GetSliceVref (self.api,self.caller).call(auth,slice_id) # omf-control'ed slivers need the omf vserver reference image - # this is to avoid asking users to set both tags 'omf_control' and 'vref' - if not vref and GetSliceOmfControl(self.api,self.caller).call(auth,slice_id): - SetSliceVref (self.api) (auth,slice_id,'omf') - vref='omf' + # we used to issue SetSliceVref (self.api) (auth,slice_id,'omf') + # to avoid asking users to set both tags 'omf_control' and 'vref' + # however we can't use SetSliceVref here because a node is only allowed + # to set a sliver tag, not a slice tag + # and this somehow gets called from GetSlivers + # anyways it was a bad idea, let's have the UI do that instead # xxx would make sense to check the corresponding vserver rpms are available # in all node-families yum repos (and yumgroups, btw)