summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-01-04 07:09:18 +0000
committerMatt Wilson <msw@redhat.com>2001-01-04 07:09:18 +0000
commit8f8a22f2791bb91a2448aa60dff148b63d4752a1 (patch)
treed826d307bbf9073be51b652ed3c487d750d4dc54
parent85b3078a4949833b02d1eaf2a168b34257ee44a1 (diff)
downloadanaconda-8f8a22f2791bb91a2448aa60dff148b63d4752a1.tar.gz
anaconda-8f8a22f2791bb91a2448aa60dff148b63d4752a1.tar.xz
anaconda-8f8a22f2791bb91a2448aa60dff148b63d4752a1.zip
only paste strings into the config file
-rw-r--r--simpleconfig.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/simpleconfig.py b/simpleconfig.py
index e5a320a3e..c97eb3951 100644
--- a/simpleconfig.py
+++ b/simpleconfig.py
@@ -7,7 +7,8 @@ class SimpleConfigFile:
keys.sort ()
for key in keys:
# FIXME - use proper escaping
- s = s + key + "=\"" + self.info[key] + "\"\n"
+ if type (self.info[key]) == type(""):
+ s = s + key + "=\"" + self.info[key] + "\"\n"
return s
def __init__ (self):