Skip to content

Commit b5f977e

Browse files
committed
feat (CS): remove the setup when looking for shifter
1 parent 1dcaf5f commit b5f977e

File tree

1 file changed

+6
-16
lines changed
  • src/DIRAC/ConfigurationSystem/Client

1 file changed

+6
-16
lines changed

src/DIRAC/ConfigurationSystem/Client/CSAPI.py

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -612,25 +612,15 @@ def getOpsSection():
612612
Where is the shifters section?
613613
"""
614614
vo = CSGlobals.getVO()
615-
setup = CSGlobals.getSetup()
616615

617616
if vo:
618-
res = gConfig.getSections(f"/Operations/{vo}/{setup}/Shifter")
617+
res = gConfig.getSections(f"/Operations/{vo}/Shifter")
619618
if res["OK"]:
620-
return S_OK(f"/Operations/{vo}/{setup}/Shifter")
619+
return S_OK(f"/Operations/{vo}/Shifter")
621620

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")
634624

635625
return S_ERROR("No shifter section")
636626

@@ -671,7 +661,7 @@ def getOpsSection():
671661
gLogger.info("Adding shifter section")
672662
vo = CSGlobals.getVO()
673663
if vo:
674-
section = f"/Operations/{vo}/Defaults/Shifter"
664+
section = f"/Operations/{vo}/Shifter"
675665
else:
676666
section = "/Operations/Defaults/Shifter"
677667
res = self.__csMod.createSection(section)

0 commit comments

Comments
 (0)