Skip to content

Commit d4b4151

Browse files
authored
allow : in DN of myproxy retrievers. Fix #5303 (#5304)
1 parent f8ce0b8 commit d4b4151

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/python/CRABClient/ProxyInteractions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ def getInfo(self, username=None):
167167
return 0, ''
168168
olines = stdout.rstrip().split('\n')
169169
trustedRetrievalPolicy = olines[-2]
170-
trustedRetrievers = trustedRetrievalPolicy.split(':')[1].strip()
170+
# allow for ':' in the trustedRetrievers DN's (as for robot cert !)
171+
# by taking everything after the first ':' in myproxy-info output
172+
# split(':', maxsplit=1) would be more clear, but it is not allowed in python2
173+
trustedRetrievers = trustedRetrievalPolicy.split(':', 1)[1].strip()
171174
times = olines[-1].split(':')
172175
hours = int(times[1])
173176
mins = int(times[2])

0 commit comments

Comments
 (0)