moved around the if block
This commit is contained in:
parent
75a36e2fdc
commit
46c43b25a6
|
|
@ -156,6 +156,8 @@ def ask_to_configure_network():
|
||||||
|
|
||||||
nic = generic_select(interfaces.values(), "Select one network interface to configure (leave blank to skip): ")
|
nic = generic_select(interfaces.values(), "Select one network interface to configure (leave blank to skip): ")
|
||||||
if nic and nic != 'Copy ISO network configuration to installation':
|
if nic and nic != 'Copy ISO network configuration to installation':
|
||||||
|
if nic == 'Use NetworkManager to control and manage you internet conntetion':
|
||||||
|
return {'nic': nic,'NetworkManager':True}
|
||||||
mode = generic_select(['DHCP (auto detect)', 'IP (static)'], f"Select which mode to configure for {nic}: ")
|
mode = generic_select(['DHCP (auto detect)', 'IP (static)'], f"Select which mode to configure for {nic}: ")
|
||||||
if mode == 'IP (static)':
|
if mode == 'IP (static)':
|
||||||
while 1:
|
while 1:
|
||||||
|
|
@ -178,7 +180,7 @@ def ask_to_configure_network():
|
||||||
|
|
||||||
return {'nic': nic, 'dhcp': False, 'ip': ip, 'gateway' : gateway, 'dns' : dns}
|
return {'nic': nic, 'dhcp': False, 'ip': ip, 'gateway' : gateway, 'dns' : dns}
|
||||||
else:
|
else:
|
||||||
return {'nic': nic,'NetworkManager':True}
|
return {'nic': nic}
|
||||||
elif nic:
|
elif nic:
|
||||||
return nic
|
return nic
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue