1 |
|
#!/usr/bin/env python |
2 |
|
|
3 |
< |
import sys, os, string |
3 |
> |
import sys |
4 |
|
|
5 |
|
class CondorGLoggingInfo: |
6 |
|
def __init__(self) : |
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] |