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
This commit is contained in:
@@ -44,8 +44,8 @@ class PropertyCollecter(iniparser.BaseParser):
|
|||||||
def collect_properties(cls, lineiter, sample_format=False):
|
def collect_properties(cls, lineiter, sample_format=False):
|
||||||
def clean_sample(f):
|
def clean_sample(f):
|
||||||
for line in f:
|
for line in f:
|
||||||
if line.startswith("# ") and line != '# nova.conf sample #\n':
|
if line.startswith("#") and not line.startswith("# "):
|
||||||
line = line[2:]
|
line = line[1:]
|
||||||
yield line
|
yield line
|
||||||
pc = cls()
|
pc = cls()
|
||||||
if sample_format:
|
if sample_format:
|
||||||
|
|||||||
Reference in New Issue
Block a user