diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-08-03 18:39:14 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-08-03 18:39:14 +0000 |
commit | 5a5d4b3879d9c91ddf877b9cc3640724281651c3 (patch) | |
tree | 057c1ca7a7423be6f584ad504c4aa5931f05a6f7 /lvm.py | |
parent | 3e2c1824824a94191198fab134e2bc5ea0acb862 (diff) | |
download | anaconda-5a5d4b3879d9c91ddf877b9cc3640724281651c3.tar.gz anaconda-5a5d4b3879d9c91ddf877b9cc3640724281651c3.tar.xz anaconda-5a5d4b3879d9c91ddf877b9cc3640724281651c3.zip |
capture stderr (#128814)
Diffstat (limited to 'lvm.py')
-rw-r--r-- | lvm.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -174,7 +174,8 @@ def lvlist(): lvs = [] args = ["lvm", "lvdisplay", "-C", "--noheadings", "--units", "b"] - lvscanout = iutil.execWithCapture(args[0], args, searchPath = 1) + lvscanout = iutil.execWithCapture(args[0], args, searchPath = 1, + stderr = "/dev/tty6") for line in lvscanout.split("\n"): try: (lv, vg, attr, size) = line.strip()[:-1].split() @@ -192,7 +193,8 @@ def pvlist(): pvs = [] args = ["lvm", "pvdisplay", "-C", "--noheadings", "--units", "b"] - scanout = iutil.execWithCapture(args[0], args, searchPath = 1) + scanout = iutil.execWithCapture(args[0], args, searchPath = 1, + stderr = "/dev/tty6") for line in scanout.split("\n"): try: (dev, vg, format, attr, size, free) = line.strip()[:-1].split() @@ -211,7 +213,8 @@ def vglist(): vgs = [] args = ["lvm", "vgdisplay", "-C", "--noheadings", "--units", "b"] - scanout = iutil.execWithCapture(args[0], args, searchPath = 1) + scanout = iutil.execWithCapture(args[0], args, searchPath = 1, + stderr = "/dev/tty6") for line in scanout.split("\n"): try: (vg, numpv, numlv, numsn, attr, size, free) = line.strip()[:-1].split() |