Quote values when writing out to ifcfg files (#520146)
---
network.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/network.py b/network.py
index e353a79..974784f 100644
--- a/network.py
+++ b/network.py
@@ -272,7 +272,7 @@ class NetworkDevice(IfcfgFile):
elif key == 'ETHTOOL_OPTS' and self.info[key].find("autoneg")== -1:
s = s + key + """="autoneg off %s"
""" % (self.info[key])
elif self.info[key] is not None:
- s = s + key + "=" + self.info[key] + "
"
+ s = s + key + '="' + self.info[key] + '"
'
return s
--
1.6.0.6
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|