Skip to content

Commit ee30454

Browse files
committed
tui: don't hide NIC selection when there is only one
Making things visible is good (esp. here it allows to check interface details), and having the test at this level would not allow to implement xenserver#8. Signed-off-by: Yann Dirson <[email protected]>
1 parent 842d427 commit ee30454

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tui/installer/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ def upgrade_but_no_settings_predicate(answers):
4646
('installation-to-overwrite' not in answers or \
4747
not answers['installation-to-overwrite'].settingsAvailable())
4848

49-
has_multiple_nics = lambda a: len(a['network-hardware'].keys()) > 1
50-
5149
is_reinstall_fn = lambda a: a['install-type'] == constants.INSTALL_TYPE_REINSTALL
5250
is_clean_install_fn = lambda a: a['install-type'] == constants.INSTALL_TYPE_FRESH
5351
is_not_restore_fn = lambda a: a['install-type'] != constants.INSTALL_TYPE_RESTORE
@@ -162,7 +160,7 @@ def out_of_order_pool_upgrade_fn(answers):
162160
Step(uis.get_root_password,
163161
predicates=[is_not_restore_fn, not_preserve_settings]),
164162
Step(uis.get_admin_interface,
165-
predicates=[is_not_restore_fn, has_multiple_nics, not_preserve_settings]),
163+
predicates=[is_not_restore_fn, not_preserve_settings]),
166164
Step(uis.get_admin_interface_configuration,
167165
predicates=[is_not_restore_fn, not_preserve_settings]),
168166
Step(uis.get_name_service_configuration,

0 commit comments

Comments
 (0)