diff options
| author | David Lehman <dlehman@redhat.com> | 2010-02-04 20:05:12 -0600 |
|---|---|---|
| committer | David Lehman <dlehman@redhat.com> | 2010-02-05 12:23:53 -0600 |
| commit | 6acebd670d9e71cd2765429e504bdaae2b63b302 (patch) | |
| tree | 744c746fe16bea94f46583b1d52de2b28f5d31a9 /storage/devicelibs | |
| parent | 0a8ca83dc4968205768874b03a71e46009467530 (diff) | |
| download | anaconda-6acebd670d9e71cd2765429e504bdaae2b63b302.tar.gz anaconda-6acebd670d9e71cd2765429e504bdaae2b63b302.tar.xz anaconda-6acebd670d9e71cd2765429e504bdaae2b63b302.zip | |
Fix splitting of error strings from program.log.
Timestamp/tag format changed.
Diffstat (limited to 'storage/devicelibs')
| -rw-r--r-- | storage/devicelibs/lvm.py | 2 | ||||
| -rw-r--r-- | storage/devicelibs/mdraid.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/storage/devicelibs/lvm.py b/storage/devicelibs/lvm.py index a0b01e7cd..6dd2cd6e0 100644 --- a/storage/devicelibs/lvm.py +++ b/storage/devicelibs/lvm.py @@ -169,7 +169,7 @@ def lvm(args, progress=None): try: # grab the last line of program.log and strip off the timestamp msg = open("/tmp/program.log").readlines()[-1] - msg = msg.split(" : ", 1)[1].strip() + msg = msg.split("program: ", 1)[1].strip() except Exception: msg = "" diff --git a/storage/devicelibs/mdraid.py b/storage/devicelibs/mdraid.py index 5cf8cb49f..a04965d3c 100644 --- a/storage/devicelibs/mdraid.py +++ b/storage/devicelibs/mdraid.py @@ -135,7 +135,7 @@ def mdadm(args, progress=None): try: # grab the last line of program.log and strip off the timestamp msg = open("/tmp/program.log").readlines()[-1] - msg = msg.split(" : ", 1)[1].strip() + msg = msg.split("program: ", 1)[1].strip() except Exception: msg = "" |
