diff options
-rwxr-xr-x | tools/conf/analyze_opts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/conf/analyze_opts.py b/tools/conf/analyze_opts.py index 3088d6390..84294c9d3 100755 --- a/tools/conf/analyze_opts.py +++ b/tools/conf/analyze_opts.py @@ -44,8 +44,8 @@ class PropertyCollecter(iniparser.BaseParser): def collect_properties(cls, lineiter, sample_format=False): def clean_sample(f): for line in f: - if line.startswith("# ") and line != '# nova.conf sample #\n': - line = line[2:] + if line.startswith("#") and not line.startswith("# "): + line = line[1:] yield line pc = cls() if sample_format: |