Skip to content

Commit 2bb75a6

Browse files
authored
Merge pull request #7130 from fstagni/80_fixes63
[8.0] Do not overwrite the tornado port if already set
2 parents e21716d + 97fcef6 commit 2bb75a6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/DIRAC/FrameworkSystem/Client/ComponentInstaller.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,12 @@ def addTornadoOptionsToCS(self, gConfig_o):
23882388
return S_ERROR(f"{instanceOption} not defined in {self.cfgFile}")
23892389
tornadoSection = cfgPath("Systems", "Tornado", compInstance)
23902390

2391-
cfg = self.__getCfg(tornadoSection, "Port", 8443)
2391+
if gConfig_o:
2392+
tornadoPort = gConfig_o.getValue(cfgPath(tornadoSection, "Port"), "8443")
2393+
else:
2394+
tornadoPort = self.localCfg.getOption(cfgPath(tornadoSection, "Port"), "8443")
2395+
2396+
cfg = self.__getCfg(tornadoSection, "Port", tornadoPort)
23922397
# cfg.setOption(cfgPath(tornadoSection, 'Password'), self.mysqlPassword)
23932398
return self._addCfgToCS(cfg)
23942399

0 commit comments

Comments
 (0)