diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-10-11 19:14:14 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-10-11 19:14:14 -0700 |
commit | 204c635e622b52bbe2b2c2a72765e3cb886602fc (patch) | |
tree | 9193af77ec91c6d495c0262830ee8655ab96f3b9 /cloudinit/distros/parsers | |
parent | 3cf8b618f9efcdb2e9cca695c2930a2bf14d42ec (diff) | |
download | vyos-cloud-init-204c635e622b52bbe2b2c2a72765e3cb886602fc.tar.gz vyos-cloud-init-204c635e622b52bbe2b2c2a72765e3cb886602fc.zip |
Fix the single item string quoting function.
Diffstat (limited to 'cloudinit/distros/parsers')
-rw-r--r-- | cloudinit/distros/parsers/sys_conf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/distros/parsers/sys_conf.py b/cloudinit/distros/parsers/sys_conf.py index 80c305fe..1cefb8bc 100644 --- a/cloudinit/distros/parsers/sys_conf.py +++ b/cloudinit/distros/parsers/sys_conf.py @@ -61,7 +61,7 @@ class SysConf(configobj.ConfigObj): quot_func = (lambda x: str(x)) if value[0] in ['"', "'"] and value[-1] in ['"', "'"]: if len(value) == 1: - quot_func = self._get_single_quote + quot_func = (lambda x: self._get_single_quote(x) % x) else: # Quote whitespace if it isn't the start + end of a shell command white_space_ok = False |