diff options
author | Martin Gracik <mgracik@redhat.com> | 2009-03-13 14:56:07 +0100 |
---|---|---|
committer | Martin Gracik <mgracik@redhat.com> | 2009-03-16 16:36:58 +0100 |
commit | 9514763cb6f1faf74bfa4d434ce5125d8a55475c (patch) | |
tree | c4d0033e5498acb1e3d597a1e60794f1367bfc5a /storage | |
parent | 0dc62d034ecc917345fa2c206bddf5f1bde6b3a6 (diff) | |
download | anaconda-9514763cb6f1faf74bfa4d434ce5125d8a55475c.tar.gz anaconda-9514763cb6f1faf74bfa4d434ce5125d8a55475c.tar.xz anaconda-9514763cb6f1faf74bfa4d434ce5125d8a55475c.zip |
Fixed the names of the variables for lvm.py functions.
lv_name is passed to the function, not lv_path,
which was used in the raise statements.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/devicelibs/lvm.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/devicelibs/lvm.py b/storage/devicelibs/lvm.py index 0a1971152..8b755a4e0 100644 --- a/storage/devicelibs/lvm.py +++ b/storage/devicelibs/lvm.py @@ -367,7 +367,7 @@ def lvremove(vg_name, lv_name): searchPath=1) if rc: - raise LVMError("lvremove failed for %s" % lv_path) + raise LVMError("lvremove failed for %s" % lv_name) def lvresize(vg_name, lv_name, size): args = ["lvresize"] + \ @@ -381,7 +381,7 @@ def lvresize(vg_name, lv_name, size): searchPath=1) if rc: - raise LVMError("lvresize failed for %s" % lv_path) + raise LVMError("lvresize failed for %s" % lv_name) def lvactivate(vg_name, lv_name): # see if lvchange accepts paths of the form 'mapper/$vg-$lv' @@ -394,7 +394,7 @@ def lvactivate(vg_name, lv_name): stderr = "/dev/tty5", searchPath=1) if rc: - raise LVMError("lvactivate failed for %s" % lv_path) + raise LVMError("lvactivate failed for %s" % lv_name) def lvdeactivate(vg_name, lv_name): args = ["lvchange", "-a", "n"] + \ @@ -407,5 +407,5 @@ def lvdeactivate(vg_name, lv_name): searchPath=1) if rc: - raise LVMError("lvdeactivate failed for %s" % lv_path) + raise LVMError("lvdeactivate failed for %s" % lv_name) |