Skip to content

Commit 34186b1

Browse files
authored
Merge pull request #8353 from fstagni/add_preferredURLPatterns
[9.0] feat: added PreferredURLPatterns to pilot.json
2 parents 445c0a4 + 859bd37 commit 34186b1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/DIRAC/WorkloadManagementSystem/Utilities/PilotCStoJSONSynchronizer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import shutil
1212
import tarfile
1313
from typing import Any
14-
1514
from git import Repo
1615

1716
from DIRAC import S_OK, gConfig, gLogger
@@ -217,6 +216,10 @@ def getCSDict(self, includeMasterCS: bool = True) -> DReturnType[Any]:
217216

218217
pilotDict["ConfigurationServers"] = configurationServers
219218

219+
preferredURLPatterns = gConfigurationData.extractOptionFromCFG("/DIRAC/PreferredURLPatterns")
220+
if preferredURLPatterns:
221+
pilotDict["PreferredURLPatterns"] = preferredURLPatterns
222+
220223
self.log.debug("Got pilotDict", str(pilotDict))
221224

222225
return S_OK(pilotDict)

0 commit comments

Comments
 (0)