From aa2b2b6525b2ba8f139b11c3a7e431094b933588 Mon Sep 17 00:00:00 2001 From: aldbr Date: Thu, 21 Sep 2023 11:11:35 +0200 Subject: [PATCH] fix: OwnerDN in JobAgent --- src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py b/src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py index af84b7bb986..3ad47ffca97 100755 --- a/src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py +++ b/src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py @@ -254,7 +254,7 @@ def execute(self): ) self.jobReport.setJobStatus(minorStatus="Job Received by Agent", sendFlag=False) - ownerDN = getDNForUsername(owner)["Value"] + ownerDN = getDNForUsername(owner)["Value"][0] result_setupProxy = self._setupProxy(ownerDN, jobGroup) if not result_setupProxy["OK"]: result = self._rescheduleFailedJob(jobID, result_setupProxy["Message"])