summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJoe Gordon <joe.gordon0@gmail.com>2013-06-07 12:21:21 -0700
committerJoe Gordon <joe.gordon0@gmail.com>2013-06-07 12:21:21 -0700
commitcd32d6b000a3df9fde5fa167e3312769696474d8 (patch)
treead61e58119d5699ac01c1e010c0dc3623970bbb5 /tools
parent3100abbd9d15496a9c6eb16c3b4a7be2b2208c59 (diff)
downloadnova-cd32d6b000a3df9fde5fa167e3312769696474d8.tar.gz
nova-cd32d6b000a3df9fde5fa167e3312769696474d8.tar.xz
nova-cd32d6b000a3df9fde5fa167e3312769696474d8.zip
Update analyze_opts to work with new nova.conf sample format
analyze_opts is a tool to help clean out a nova.conf file by checking for unused and default values set in your nova.conf Change-Id: I01fff134f8906bff929c55bea8c152653d3e9760
Diffstat (limited to 'tools')
-rwxr-xr-xtools/conf/analyze_opts.py4
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: