summaryrefslogtreecommitdiffstats
path: root/iw/network_gui.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-06-21 05:38:35 +0000
committerMike Fulbright <msf@redhat.com>2002-06-21 05:38:35 +0000
commitb208af8570262aff1d2361e9b7f36655c515c767 (patch)
tree97fa8f0e1b687104d208d112d094760374cb49de /iw/network_gui.py
parentf84d7119733a21bbbf1d54e95f23a224415f0b6b (diff)
downloadanaconda-b208af8570262aff1d2361e9b7f36655c515c767.tar.gz
anaconda-b208af8570262aff1d2361e9b7f36655c515c767.tar.xz
anaconda-b208af8570262aff1d2361e9b7f36655c515c767.zip
fix filling in hostname if static selected
Diffstat (limited to 'iw/network_gui.py')
-rw-r--r--iw/network_gui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/iw/network_gui.py b/iw/network_gui.py
index b709125e5..28417511c 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -515,7 +515,7 @@ class NetworkWindow(InstallWindow):
self.globals[global_options[t]] = options[t]
# bring over the value from the loader
- if self.network.hostname != "localhost.localdomain" and self.network.overrideDHCPhostname:
+ if self.network.hostname != "localhost.localdomain" and ((self.anyUsingDHCP() and self.network.overrideDHCPhostname) or not self.anyUsingDHCP()):
self.hostnameEntry.set_text(self.network.hostname)
if not self.anyUsingDHCP():