Skip to content

Commit 701a0eb

Browse files
committed
fix (TS): only set the URL of the TransformationClient if not given in parameters
1 parent 549f411 commit 701a0eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DIRAC/TransformationSystem/Client/TransformationClient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Class that contains client access to the transformation DB handler. """
1+
"""Class that contains client access to the transformation DB handler."""
22

33
from DIRAC import S_OK, S_ERROR, gLogger
44
from DIRAC.Core.Base.Client import Client, createClient
@@ -62,8 +62,8 @@ def __init__(self, **kwargs):
6262
super().__init__(**kwargs)
6363
opsH = Operations()
6464
self.maxResetCounter = opsH.getValue("Transformations/FilesMaxResetCounter", 10)
65-
66-
self.setServer("Transformation/TransformationManager")
65+
if "url" not in kwargs:
66+
self.setServer("Transformation/TransformationManager")
6767

6868
def setServer(self, url):
6969
self.serverURL = url

0 commit comments

Comments
 (0)