Skip to content

Commit

Permalink
fix: do not overwrite the tornado port if already set
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Aug 2, 2023
1 parent 8a0fe38 commit 97fcef6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/DIRAC/FrameworkSystem/Client/ComponentInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -2388,7 +2388,12 @@ def addTornadoOptionsToCS(self, gConfig_o):
return S_ERROR(f"{instanceOption} not defined in {self.cfgFile}")
tornadoSection = cfgPath("Systems", "Tornado", compInstance)

cfg = self.__getCfg(tornadoSection, "Port", 8443)
if gConfig_o:
tornadoPort = gConfig_o.getValue(cfgPath(tornadoSection, "Port"), "8443")
else:
tornadoPort = self.localCfg.getOption(cfgPath(tornadoSection, "Port"), "8443")

cfg = self.__getCfg(tornadoSection, "Port", tornadoPort)
# cfg.setOption(cfgPath(tornadoSection, 'Password'), self.mysqlPassword)
return self._addCfgToCS(cfg)

Expand Down

0 comments on commit 97fcef6

Please sign in to comment.