From 1fa6d0f1ea36ee3cf070f8882354b24a243d024e Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 6 May 2009 08:31:26 +0200 Subject: Forward port various iscsi fixes from 5.4 iscsi work This patch contains the following small fixes: - There is no need to convert None as username/pass into an empty string pylibiscsi will happily take either - Only set the initiator name from ibft if the ibft flag is present - Show an error when no username is specified, but a password / reverse username / pass is given - Do not backtrace when the following happens: 1) Manually add iscsi disk 2) enter wrong IP / username without pass 3) Fix this *and* change the initiator name initially choosen - Allow having only a reverse password without a reverse username --- iw/autopart_type.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'iw') diff --git a/iw/autopart_type.py b/iw/autopart_type.py index 1b355738b..4d9953c18 100644 --- a/iw/autopart_type.py +++ b/iw/autopart_type.py @@ -292,15 +292,6 @@ class PartitionTypeWindow(InstallWindow): user_in = dxml.get_widget("userinEntry").get_text().strip() pw_in = dxml.get_widget("passinEntry").get_text().strip() - if len(user) == 0: - user = None - if len(pw) == 0: - pw = None - if len(user_in) == 0: - user_in = None - if len(pw_in) == 0: - pw_in = None - err = None try: idx = target.rfind(":") -- cgit