# | Line 42 | Line 42 | def getDN(): | |
---|---|---|
42 | try: | |
43 | userdn = runCommand("voms-proxy-info -identity") | |
44 | userdn = string.strip(userdn) | |
45 | + | #search for a / to avoid picking up warning messages |
46 | + | userdn = userdn[userdn.find('/'):] |
47 | except: | |
48 | msg = "Error. Problem with voms-proxy-info -identity command" | |
49 | raise CrabException(msg) | |
50 | < | return userdn |
50 | > | return userdn.split('\n')[0] |
51 | ||
52 | def gethnUserName(): | |
53 | """ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |