File tree Expand file tree Collapse file tree 1 file changed +6
-16
lines changed
src/DIRAC/ConfigurationSystem/Client Expand file tree Collapse file tree 1 file changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -612,25 +612,15 @@ def getOpsSection():
612
612
Where is the shifters section?
613
613
"""
614
614
vo = CSGlobals .getVO ()
615
- setup = CSGlobals .getSetup ()
616
615
617
616
if vo :
618
- res = gConfig .getSections (f"/Operations/{ vo } /{ setup } / Shifter" )
617
+ res = gConfig .getSections (f"/Operations/{ vo } /Shifter" )
619
618
if res ["OK" ]:
620
- return S_OK (f"/Operations/{ vo } /{ setup } / Shifter" )
619
+ return S_OK (f"/Operations/{ vo } /Shifter" )
621
620
622
- res = gConfig .getSections (f"/Operations/{ vo } /Defaults/Shifter" )
623
- if res ["OK" ]:
624
- return S_OK (f"/Operations/{ vo } /Defaults/Shifter" )
625
-
626
- else :
627
- res = gConfig .getSections (f"/Operations/{ setup } /Shifter" )
628
- if res ["OK" ]:
629
- return S_OK (f"/Operations/{ setup } /Shifter" )
630
-
631
- res = gConfig .getSections ("/Operations/Defaults/Shifter" )
632
- if res ["OK" ]:
633
- return S_OK ("/Operations/Defaults/Shifter" )
621
+ res = gConfig .getSections ("/Operations/Defaults/Shifter" )
622
+ if res ["OK" ]:
623
+ return S_OK ("/Operations/Defaults/Shifter" )
634
624
635
625
return S_ERROR ("No shifter section" )
636
626
@@ -671,7 +661,7 @@ def getOpsSection():
671
661
gLogger .info ("Adding shifter section" )
672
662
vo = CSGlobals .getVO ()
673
663
if vo :
674
- section = f"/Operations/{ vo } /Defaults/ Shifter"
664
+ section = f"/Operations/{ vo } /Shifter"
675
665
else :
676
666
section = "/Operations/Defaults/Shifter"
677
667
res = self .__csMod .createSection (section )
You can’t perform that action at this time.
0 commit comments