Skip to content

Commit fa9c15a

Browse files
authored
Merge pull request #5748 from chrisburr/cherry-pick-2-d4a3cdf33-integration
[sweep:integration] Get Tornado's port from the CS when adding URLs
2 parents 3709ef1 + 2596460 commit fa9c15a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/DIRAC/FrameworkSystem/Client/ComponentInstaller.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,10 +871,14 @@ def getComponentCfg(
871871
failoverUrlsPath = cfgPath("Systems", system, compInstance, "FailoverURLs")
872872
cfg.createNewSection(failoverUrlsPath)
873873
if protocol == "https":
874+
tornadoPort = gConfig.getValue(
875+
"/Systems/Tornado/%s/Port" % PathFinder.getSystemInstance("Tornado"),
876+
8443,
877+
)
874878
cfg.setOption(
875879
# Strip "Tornado" from the beginning of component name if present
876880
cfgPath(urlsPath, component[len("Tornado") if component.startswith("Tornado") else 0 :]),
877-
"https://%s:8443/%s/%s" % (self.host, system, component),
881+
"https://%s:%s/%s/%s" % (self.host, tornadoPort, system, component),
878882
)
879883
else:
880884
cfg.setOption(

0 commit comments

Comments
 (0)