diff options
author | Hans de Goede <hdegoede@redhat.com> | 2008-11-11 15:50:08 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2008-11-11 22:34:48 +0100 |
commit | feb6f9f7d508e36c57d9a1bb28727217e28472ef (patch) | |
tree | bf4b8cc04c40ae49890468a2c2177814c291b54b /textw | |
parent | 2063357f821cd9700ec8c3c932b4a019fec8881e (diff) | |
download | anaconda-feb6f9f7d508e36c57d9a1bb28727217e28472ef.tar.gz anaconda-feb6f9f7d508e36c57d9a1bb28727217e28472ef.tar.xz anaconda-feb6f9f7d508e36c57d9a1bb28727217e28472ef.zip |
iscsi do missing value check only once
Currently the iscsi code checks for giving a password but not a username or
vica versa in both the interface and the iscsi code, this patch removes the
unneeded check from the interface code, this is a preparation patch for
fixing #463156, #461830
Diffstat (limited to 'textw')
-rw-r--r-- | textw/partition_text.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py index 0c4bd77c8..83638d081 100644 --- a/textw/partition_text.py +++ b/textw/partition_text.py @@ -1706,24 +1706,6 @@ class PartitionTypeWindow: if len(pw_in) == 0: pw_in = None - if user is not None or pw is not None: - if user is None: - ButtonChoiceWindow(screen, _("Missing value"), - _("Username is required when password is present.")) - if pw is None: - ButtonChoiceWindow(screen, _("Missing value"), - _("Password is required when username is present.")) - - if user_in is not None or pw_in is not None: - if user_in is None: - ButtonChoiceWindow(screen, _("Missing value"), - _("Reverse username is required when" - "reverse password is present.")) - if pw_in is None: - ButtonChoiceWindow(screen, _("Missing value"), - _("Reverse password is required when" - "reverse username is present.")) - target = entries[0].strip() try: idx = target.rfind(":") |