ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/LFNBaseName.py
(Generate patch)

Comparing COMP/CRAB/python/LFNBaseName.py (file contents):
Revision 1.6 by afanfani, Wed May 28 18:18:05 2008 UTC vs.
Revision 1.8 by spiga, Thu Jun 5 13:39:32 2008 UTC

# 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      """

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines