Skip to content

Commit 506eadc

Browse files
committed
fix: WorkflowTaks does not need the DN
1 parent d24f3ae commit 506eadc

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/DIRAC/TransformationSystem/Client/WorkflowTasks.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from DIRAC import S_OK, S_ERROR, gLogger
77
from DIRAC.ConfigurationSystem.Client.Helpers.Operations import Operations
8-
from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getDNForUsername
98
from DIRAC.Core.Security.ProxyInfo import getProxyInfo
109
from DIRAC.Core.Utilities.List import fromChar
1110
from DIRAC.Core.Utilities.DErrno import ETSDATA, ETSUKN
@@ -103,11 +102,6 @@ def prepareTransformationTasks(self, transBody, taskDict, owner="", ownerGroup="
103102
owner = proxyInfo["username"]
104103
ownerGroup = proxyInfo["group"]
105104

106-
res = getDNForUsername(owner)
107-
if not res["OK"]:
108-
return res
109-
ownerDN = res["Value"][0]
110-
111105
if bulkSubmissionFlag:
112106
return self.__prepareTasksBulk(transBody, taskDict, owner, ownerGroup)
113107
# not a bulk submission

src/DIRAC/TransformationSystem/Client/test/Test_Client_WorkflowTasks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@
9292
],
9393
)
9494
def test_prepareTranformationTasks(mocker, taskDictionary, bulkSubmissionFlag, result, expectedRes):
95-
mocker.patch("DIRAC.TransformationSystem.Client.WorkflowTasks.getDNForUsername", return_value=S_OK(["/bih/boh/DN"]))
96-
9795
res = wfTasks.prepareTransformationTasks(
9896
"", taskDictionary, "test_user", "test_group", bulkSubmissionFlag=bulkSubmissionFlag
9997
)

0 commit comments

Comments
 (0)