File tree Expand file tree Collapse file tree
src/DIRAC/WorkloadManagementSystem/Service Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,24 +121,9 @@ def killPilotsInQueues(pilotRefDict):
121121 return result
122122 ce = result ["Value" ]
123123
124- opsH = Operations (vo = vo )
125-
126- pilotDN = opsH .getValue ("Pilot/GenericPilotDN" )
127- if not pilotDN :
128- owner = opsH .getValue ("Pilot/GenericPilotUser" )
129- res = getDNForUsername (owner )
130- if not res ["OK" ]:
131- return S_ERROR (f"Cannot get the generic pilot DN: { res ['Message' ]} " )
132- pilotDN = res ["Value" ][0 ]
133-
134- pilotGroup = opsH .getValue ("Pilot/GenericPilotGroup" )
135- group = getGroupOption (pilotGroup , "VOMSRole" )
136- ret = gProxyManager .getPilotProxyFromVOMSGroup (pilotDN , group )
137- if not ret ["OK" ]:
138- gLogger .error ("Could not get proxy:" , f"User '{ pilotDN } ' Group '{ group } ' : { ret ['Message' ]} " )
139- return S_ERROR ("Failed to get the pilot's owner proxy" )
140- proxy = ret ["Value" ]
141- ce .setProxy (proxy )
124+ result = setPilotCredentials (ce , pilotDict )
125+ if not result ["OK" ]:
126+ return result
142127
143128 pilotList = pilotDict ["PilotList" ]
144129 result = ce .killJob (pilotList )
You can’t perform that action at this time.
0 commit comments