diff options
| author | Derek Higgins <derekh@redhat.com> | 2012-05-31 11:22:25 +0100 |
|---|---|---|
| committer | Derek Higgins <derekh@redhat.com> | 2012-05-31 11:27:36 +0100 |
| commit | d5f888fc7ad8b83b8af25c96c0211b0d70405c89 (patch) | |
| tree | 6ed83c18bd97c8eb5c12c7dd6e47a9a424800de8 /tools/conf | |
| parent | 0f2142b14adc442840c79a48add0dab78acf7c93 (diff) | |
| download | nova-d5f888fc7ad8b83b8af25c96c0211b0d70405c89.tar.gz nova-d5f888fc7ad8b83b8af25c96c0211b0d70405c89.tar.xz nova-d5f888fc7ad8b83b8af25c96c0211b0d70405c89.zip | |
Removing double quotes from sample config file
Fixes bug #1005869
Changing create_conf.py to no longer include quotes for
StrOpt, ListOpt and MultiStrOpt types, Also regenerating
and new version of etc/nova/nova.conf.sample
Change-Id: I31c0a6cdcfd3e7cacaae6afbf75648ef0a34d668
Diffstat (limited to 'tools/conf')
| -rw-r--r-- | tools/conf/extract_opts.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/conf/extract_opts.py b/tools/conf/extract_opts.py index 256ca7f5f..44ae2b000 100644 --- a/tools/conf/extract_opts.py +++ b/tools/conf/extract_opts.py @@ -128,7 +128,7 @@ def _print_opt(opt): print '# %s=<None>' % opt_name elif opt_type == STROPT: assert(isinstance(opt_default, basestring)) - print '# %s="%s"' % (opt_name, _convert_abspath(opt_default)) + print '# %s=%s' % (opt_name, _convert_abspath(opt_default)) elif opt_type == BOOLOPT: assert(isinstance(opt_default, bool)) print '# %s=%s' % (opt_name, str(opt_default).lower()) @@ -141,11 +141,11 @@ def _print_opt(opt): print '# %s=%s' % (opt_name, opt_default) elif opt_type == LISTOPT: assert(isinstance(opt_default, list)) - print '# %s="%s"' % (opt_name, ','.join(opt_default)) + print '# %s=%s' % (opt_name, ','.join(opt_default)) elif opt_type == MULTISTROPT: assert(isinstance(opt_default, list)) for default in opt_default: - print '# %s="%s"' % (opt_name, default) + print '# %s=%s' % (opt_name, default) except Exception: sys.stderr.write('Error in option "%s"\n' % opt_name) sys.exit(1) |
