summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-01-07 20:19:35 +0000
committerJeremy Katz <katzj@redhat.com>2004-01-07 20:19:35 +0000
commit8b1792b725bd46475cb2584ff141f443aa63ab66 (patch)
tree7e4582cf1bbdef64a12b91d94cbb737e4e79f87e /network.py
parent17643443c357d9b2b4679df46541269438193abf (diff)
downloadanaconda-8b1792b725bd46475cb2584ff141f443aa63ab66.tar.gz
anaconda-8b1792b725bd46475cb2584ff141f443aa63ab66.tar.xz
anaconda-8b1792b725bd46475cb2584ff141f443aa63ab66.zip
only try to add the key if the value isn't None (#113054)
Diffstat (limited to 'network.py')
-rw-r--r--network.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/network.py b/network.py
index f861db9d1..486a728ce 100644
--- a/network.py
+++ b/network.py
@@ -118,7 +118,7 @@ class NetworkDevice(SimpleConfigFile):
# make sure we include autoneg in the ethtool line
elif key == 'ETHTOOL_OPTS' and self.info[key].find("autoneg")== -1:
s = s + key + "=" + "autoneg off " + self.info[key] + "\n"
- else:
+ elif self.info[key] is not None:
s = s + key + "=" + self.info[key] + "\n"
if key == 'ONBOOT':