i've posted it on friday, but overlooked the review, so didn't push yet, now it's pushed... -- Martin Gracik ----- Original Message ----- From: "Hans de Goede" <hdegoede@xxxxxxxxxx> To: "Discussion of Development and Customization of the Red Hat Linux Installer" <anaconda-devel-list@xxxxxxxxxx> Sent: Monday, March 16, 2009 4:22:36 PM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna Subject: [PATCH 5/5] Fix traceback when raising lvm errors 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 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list