From 680c80d9eaafb1ab486f070e23c6158b5a276040 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Thu, 23 Aug 2012 11:59:57 +0100 Subject: Ensure log formats are quoted in sample conf Fixes bug #1040583 This ensures the sample conf has: # instance_format="[instance: %(uuid)s] " rather than: # instance_format=[instance: %(uuid)s] Fix suggested by Vish. Change-Id: If20aa7276d6868a6885abc85f046733adc40331f DocImpact: update nova.conf docs --- tools/conf/extract_opts.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/conf') diff --git a/tools/conf/extract_opts.py b/tools/conf/extract_opts.py index a65a4bd2d..1f3ddc96d 100644 --- a/tools/conf/extract_opts.py +++ b/tools/conf/extract_opts.py @@ -124,6 +124,8 @@ def _sanitize_default(s): return '10.0.0.1' elif s == HOST: return 'nova' + elif s.strip() != s: + return '"%s"' % s return s -- cgit