File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/DIRAC/RequestManagementSystem/private Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,13 @@ def setupProxy(self):
155
155
os .environ ["X509_USER_PROXY" ] = proxyFile
156
156
return S_OK ({"Shifter" : isShifter , "ProxyFile" : proxyFile })
157
157
158
- # # if we're here owner is not a shifter at all
159
- ownerProxyFile = gProxyManager .downloadVOMSProxyToFile (ownerDN , ownerGroup )
158
+ # # if we're here, the owner is not a shifter at all
159
+ vomsAttr = Registry .getVOMSAttributeForGroup (ownerGroup )
160
+ if vomsAttr :
161
+ ownerProxyFile = gProxyManager .downloadVOMSProxyToFile (ownerDN , ownerGroup )
162
+ else :
163
+ ownerProxyFile = gProxyManager .downloadProxyToFile (ownerDN , ownerGroup )
164
+
160
165
if not ownerProxyFile ["OK" ] or not ownerProxyFile ["Value" ]:
161
166
reason = ownerProxyFile .get ("Message" , "No valid proxy found in ProxyManager." )
162
167
return S_ERROR (f"Change proxy error for '{ ownerDN } '@'{ ownerGroup } ': { reason } " )
You can’t perform that action at this time.
0 commit comments