summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-02-23 15:53:40 +0000
committerChris Lumens <clumens@redhat.com>2007-02-23 15:53:40 +0000
commit13479526cc423776870448a9fbd9ab8ba00628a3 (patch)
treefb29848d5e5f948cca268f367f8e8481b9af83e2 /network.py
parentdce5ff537264e8e87d0eea930b8df71e0a5d5a7e (diff)
downloadanaconda-13479526cc423776870448a9fbd9ab8ba00628a3.tar.gz
anaconda-13479526cc423776870448a9fbd9ab8ba00628a3.tar.xz
anaconda-13479526cc423776870448a9fbd9ab8ba00628a3.zip
Don't write out an extraneous "yes" (#227250).
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 b6c19d169..6c9011d88 100644
--- a/network.py
+++ b/network.py
@@ -436,7 +436,7 @@ class Network:
if not os.path.isdir("%s/etc/sysconfig/network-scripts" %(instPath,)):
iutil.mkdirChain("%s/etc/sysconfig/network-scripts" %(instPath,))
- useIPV6 = False
+ useIPV6 = "no"
# /etc/sysconfig/network-scripts/ifcfg-*
for dev in self.netdevices.values():
device = dev.get("device")
@@ -450,7 +450,7 @@ class Network:
f.write(str(dev))
if dev.get("USEIPV6"):
- useIPV6 = True
+ useIPV6 = "yes"
# write out the hostname as DHCP_HOSTNAME if given (#81613)
if (dev.get('bootproto').lower() == 'dhcp' and self.hostname and
@@ -476,7 +476,7 @@ class Network:
f = open(instPath + "/etc/sysconfig/network", "w")
f.write("NETWORKING=yes\n")
- f.write("NETWORKING_IPV6=%s\n" % useIPV6 and "yes" or "no")
+ f.write("NETWORKING_IPV6=%s\n" % useIPV6)
f.write("HOSTNAME=")
# use instclass hostname if set(kickstart) to override