Skip to content

Commit

Permalink
allow : in DN of myproxy retrievers. Fix #5303 (#5304)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored Apr 16, 2024
1 parent f8ce0b8 commit d4b4151
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/python/CRABClient/ProxyInteractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ def getInfo(self, username=None):
return 0, ''
olines = stdout.rstrip().split('\n')
trustedRetrievalPolicy = olines[-2]
trustedRetrievers = trustedRetrievalPolicy.split(':')[1].strip()
# allow for ':' in the trustedRetrievers DN's (as for robot cert !)
# by taking everything after the first ':' in myproxy-info output
# split(':', maxsplit=1) would be more clear, but it is not allowed in python2
trustedRetrievers = trustedRetrievalPolicy.split(':', 1)[1].strip()
times = olines[-1].split(':')
hours = int(times[1])
mins = int(times[2])
Expand Down

0 comments on commit d4b4151

Please sign in to comment.