summaryrefslogtreecommitdiffstats
path: root/storage/devicelibs
diff options
context:
space:
mode:
authorMartin Gracik <mgracik@redhat.com>2009-03-13 14:56:07 +0100
committerMartin Gracik <mgracik@redhat.com>2009-03-16 16:36:58 +0100
commit9514763cb6f1faf74bfa4d434ce5125d8a55475c (patch)
treec4d0033e5498acb1e3d597a1e60794f1367bfc5a /storage/devicelibs
parent0dc62d034ecc917345fa2c206bddf5f1bde6b3a6 (diff)
downloadanaconda-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/devicelibs')
-rw-r--r--storage/devicelibs/lvm.py8
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)