summaryrefslogtreecommitdiffstats
path: root/partIntfHelpers.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-06-12 15:38:12 +0000
committerMike Fulbright <msf@redhat.com>2002-06-12 15:38:12 +0000
commit9df5b632380547fe3e44b6f3a8d68ce4fd983a3d (patch)
tree745c376835772448da34b24fabc81ec20496b440 /partIntfHelpers.py
parentad943e60f03d2b635eb2bd9aca096e1d0a7c01a8 (diff)
downloadanaconda-9df5b632380547fe3e44b6f3a8d68ce4fd983a3d.tar.gz
anaconda-9df5b632380547fe3e44b6f3a8d68ce4fd983a3d.tar.xz
anaconda-9df5b632380547fe3e44b6f3a8d68ce4fd983a3d.zip
add delete confirmation for logical volumes
Diffstat (limited to 'partIntfHelpers.py')
-rw-r--r--partIntfHelpers.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/partIntfHelpers.py b/partIntfHelpers.py
index 56873d125..1e62da286 100644
--- a/partIntfHelpers.py
+++ b/partIntfHelpers.py
@@ -107,13 +107,6 @@ def isNotChangable(request, requestlist):
return _("You cannot %s this partition as it is part of "
"a RAID device")
- if request.type == REQUEST_LV:
- # temporary message
- return _("The %s action on logical volumes from the "
- "treeview is not currently supported.\n\n"
- "To perform this action first edit the "
- "associated volume group.")
-
if requestlist.isLVMVolumeGroupMember(request):
return _("You cannot %s this partition, as it is part of a LVM "
"volume group.")
@@ -418,6 +411,9 @@ def confirmDeleteRequest(intf, request):
errmsg = _("You are about to delete the volume group \"%s\"."
"\n\nALL logical volumes in this volume group "
"will be lost!" % (request.volumeGroupName,))
+ elif request.type == REQUEST_LV:
+ errmsg = _("You are about to delete the logical volume \"%s\"."
+ % (request.logicalVolumeName,))
elif request.type == REQUEST_RAID:
errmsg = _("You are about to delete a RAID device.")
else: