File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""
2- Set of utilities to retrieve Information from proxy
2+ Set of utilities to retrieve Information from proxy
33"""
4+
45import base64
56
67from DIRAC import S_ERROR , S_OK , gLogger
78from DIRAC .ConfigurationSystem .Client .Helpers import Registry
9+ from DIRAC .ConfigurationSystem .Client .Helpers .CSGlobals import getVO
10+
811from DIRAC .Core .Security import Locations
912from DIRAC .Core .Security .DiracX import diracxTokenFromPEM
1013from DIRAC .Core .Security .VOMS import VOMS
@@ -207,10 +210,11 @@ def getVOfromProxyGroup():
207210 """
208211 Return the VO associated to the group in the proxy
209212 """
210- voName = Registry . getVOForGroup ( "NoneExistingGroup" )
213+
211214 ret = getProxyInfo (disableVOMS = True )
212- if not ret ["OK" ]:
213- return S_OK ( voName )
214- if "group" in ret [ "Value" ] :
215+ if not ret ["OK" ] or "group" not in ret [ "Value" ] :
216+ voName = getVO ( )
217+ else :
215218 voName = Registry .getVOForGroup (ret ["Value" ]["group" ])
219+
216220 return S_OK (voName )
You can’t perform that action at this time.
0 commit comments