[PATCH 5/5] Fix traceback when raising lvm errors

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

 



I could swear I've seen this patch before, but it is not in the current
tree, so here it is again.
---
 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 0a19711..8b755a4 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)
 
-- 
1.6.1.3

_______________________________________________
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