summaryrefslogtreecommitdiffstats
path: root/iw
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 /iw
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 'iw')
-rw-r--r--iw/autopart_type.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/iw/autopart_type.py b/iw/autopart_type.py
index d7baa40a3..a18bfc929 100644
--- a/iw/autopart_type.py
+++ b/iw/autopart_type.py
@@ -204,6 +204,11 @@ class PartitionTypeWindow(InstallWindow):
dialog.show_all()
if rhpl.getArch() not in ("s390", "s390x"):
dxml.get_widget("zfcpRadio").hide()
+
+ import iscsi
+ if not iscsi.has_iscsi():
+ dxml.get_widget("iscsiRadio").set_sensitive(False)
+
rc = dialog.run()
dialog.hide()
if rc == gtk.RESPONSE_CANCEL: