Re: [PATCH 6/7] Fix splitting of error strings from program.log.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack.

On 02/05/2010 08:07 AM, David Lehman wrote:
Timestamp/tag format changed.
---
  storage/devicelibs/lvm.py    |    2 +-
  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 a0b01e7..6dd2cd6 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 5cf8cb4..a04965d 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 = ""


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux