diff options
author | David Cantrell <dcantrell@redhat.com> | 2008-04-25 13:53:02 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2008-04-25 13:55:16 -1000 |
commit | 3c4deee414ad8c37cfdc55ce2de7d4fbd49af017 (patch) | |
tree | bf8eb147642924158d614b5418686edaed043279 /network.py | |
parent | 4738a3bae4a75c4ec7f789d6503b0f87f898f244 (diff) | |
download | anaconda-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 'network.py')
-rw-r--r-- | network.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/network.py b/network.py index baa46b2bd..0961ea605 100644 --- a/network.py +++ b/network.py @@ -208,7 +208,9 @@ class Network: # originally used by the gui but overloaded now # we also test in places if the hostname is localhost.localdomain # to see if its been override. Need some consolidation in future. - self.overrideDHCPhostname = 0 + # + # force users to set a manual hostname by default (dcantrell, #408921) + self.overrideDHCPhostname = True if flags.rootpath: self.isConfigured = 1 |