summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-01-04 18:17:14 +0000
committerChris Lumens <clumens@redhat.com>2006-01-04 18:17:14 +0000
commit39409fff09745e84ed664034d8e784211297c8ab (patch)
tree4396ab7f1afbc554013816eba22850b104495aa8 /network.py
parent3cad0b0c6e3c8d933ee61389e5bb0c30ce2474c3 (diff)
downloadanaconda-39409fff09745e84ed664034d8e784211297c8ab.tar.gz
anaconda-39409fff09745e84ed664034d8e784211297c8ab.tar.xz
anaconda-39409fff09745e84ed664034d8e784211297c8ab.zip
Put quotes around ethtool arguments (#176918).
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 3058be43c..e2d9a1e6d 100644
--- a/network.py
+++ b/network.py
@@ -121,7 +121,7 @@ class NetworkDevice(SimpleConfigFile):
s = s + key + "=" + 'no' + "\n"
# 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"
+ s = s + key + """="autoneg off %s"\n""" % (self.info[key])
elif self.info[key] is not None:
s = s + key + "=" + self.info[key] + "\n"