summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-11-17 16:32:21 +0000
committerJeremy Katz <katzj@redhat.com>2006-11-17 16:32:21 +0000
commit7188627987f00f734e66b1357561072431ebc416 (patch)
tree60082982f58a48e576bffa8fdf4f120c02068e96 /textw
parent89d4651463e2d0e500cc275bb8ce7fd210d02ffc (diff)
downloadanaconda-7188627987f00f734e66b1357561072431ebc416.tar.gz
anaconda-7188627987f00f734e66b1357561072431ebc416.tar.xz
anaconda-7188627987f00f734e66b1357561072431ebc416.zip
2006-11-17 Jeremy Katz <katzj@redhat.com>
* iscsi.py (has_iscsi): Add a method so that we can find out if iscsi is really available (#216128) * iw/autopart_type.py (PartitionTypeWindow.addDrive): And don't allow trying to add iscsi drives if we don't have iscsi stuff. * textw/partition_text.py: Likewise.
Diffstat (limited to 'textw')
-rw-r--r--textw/partition_text.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index 8be7f2bb7..d3b8a4bd8 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -1634,7 +1634,10 @@ class PartitionTypeWindow:
return INSTALL_OK
def addDriveDialog(self, screen):
- newdrv = [ "Add iSCSI target" ]
+ newdrv = []
+ import iscsi
+ if iscsi.has_iscsi():
+ newdrv.append("Add iSCSI target")
if rhpl.getArch() in ("s390", "s390x"):
newdrv.append( "Add zFCP LUN" )