summaryrefslogtreecommitdiffstats
path: root/textw/network_text.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-04-25 13:53:02 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-04-25 13:55:16 -1000
commit3c4deee414ad8c37cfdc55ce2de7d4fbd49af017 (patch)
treebf8eb147642924158d614b5418686edaed043279 /textw/network_text.py
parent4738a3bae4a75c4ec7f789d6503b0f87f898f244 (diff)
downloadanaconda-3c4deee414ad8c37cfdc55ce2de7d4fbd49af017.tar.gz
anaconda-3c4deee414ad8c37cfdc55ce2de7d4fbd49af017.tar.xz
anaconda-3c4deee414ad8c37cfdc55ce2de7d4fbd49af017.zip
Preserve 'set the hostname' setting when going Next/Back (#443414)
Better fix for #408921. Using network.overrideDHCPhostname to set the default behavior of requiring users to set a hostname. If the user changed that to 'use DHCP', clicked Next, then clicked Back, the network configuration screen would be back at manual for the hostname. Fixed that by honoring overrideDHCPhostname. Also took the opportunity to make overrideDHCPhostname a boolean since that's how we are using it.
Diffstat (limited to 'textw/network_text.py')
-rw-r--r--textw/network_text.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/textw/network_text.py b/textw/network_text.py
index c67953e2f..4f46ef652 100644
--- a/textw/network_text.py
+++ b/textw/network_text.py
@@ -807,7 +807,7 @@ class HostnameWindow:
return INSTALL_BACK
if radio.getSelection() != "manual":
- anaconda.id.network.overrideDHCPhostname = 0
+ anaconda.id.network.overrideDHCPhostname = False
anaconda.id.network.hostname = "localhost.localdomain"
else:
hname = string.strip(hostEntry.value())
@@ -825,7 +825,7 @@ class HostnameWindow:
buttons = [ _("OK") ])
continue
- anaconda.id.network.overrideDHCPhostname = 1
+ anaconda.id.network.overrideDHCPhostname = True
anaconda.id.network.hostname = hname
break