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

Comparing COMP/CRAB/python/CondorGLoggingInfo.py (file contents):
Revision 1.2 by gutsche, Fri Oct 13 20:09:46 2006 UTC vs.
Revision 1.4 by belforte, Fri Jan 18 15:42:20 2013 UTC

# Line 1 | Line 1
1   #!/usr/bin/env python
2  
3 < import sys, os, string
3 > import sys
4  
5   class CondorGLoggingInfo:
6      def __init__(self) :
# Line 34 | Line 34 | class CondorGLoggingInfo:
34          msg = ''
35          for line in input.splitlines() :
36              if line.find('HoldReason') != -1 :
37 <                msg = line.split('\"')[-2]
37 >                msg = 'HoldReason=\n'+ line.split('\"')[-2]
38 >                break
39 >            if line.find('RemoveReason') != -1 :
40 >                msg = 'RemoveReason=\n'+line.split('\"')[-2]
41                  break
42  
43 <        if msg.find('authentication with the remote server failed') :
43 >        if msg.find('authentication with the remote server failed')>=0 :
44              self.category = self._categories[2]
45          else :
46              self.category = self._categories[0]

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines