summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-08-29 20:08:40 +0000
committerJeremy Katz <katzj@redhat.com>2001-08-29 20:08:40 +0000
commit2e9a7480a074601fbf731e7b828333bd8dd882ed (patch)
tree5813cb6b4f4ebdf5a20041df9c809c24c2a37d57 /network.py
parent097c96b9cd6bba9be602dafb218a256b79c8ed52 (diff)
downloadanaconda-2e9a7480a074601fbf731e7b828333bd8dd882ed.tar.gz
anaconda-2e9a7480a074601fbf731e7b828333bd8dd882ed.tar.xz
anaconda-2e9a7480a074601fbf731e7b828333bd8dd882ed.zip
fix writing out nameserver to ks.cfg, fix writing out hostname to ks.cfg (52829)
Diffstat (limited to 'network.py')
-rw-r--r--network.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/network.py b/network.py
index 9562b4c44..11f6ab96e 100644
--- a/network.py
+++ b/network.py
@@ -200,11 +200,11 @@ class Network:
f.write(" --bootproto static --ip %s --netmask %s --gateway %s" %
(dev.get('ipaddr'), dev.get('netmask'), self.gateway))
- if dev.get('nameserver'):
- f.write(" --nameserver %s" % dev.get('nameserver'))
+ if self.primaryNS:
+ f.write(" --nameserver %s" % self.primaryNS)
if self.hostname and self.hostname != "localhost.localdomain":
- f.write(" --hostname %s" % dev.get('hostname'))
+ f.write(" --hostname %s" % self.hostname)
f.write("\n");