Merge "YAML NIC Config 2 script - fix comment indentation"

This commit is contained in:
Zuul 2018-12-12 05:50:32 +00:00 committed by Gerrit Code Review
commit 1201d46ee3
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ def to_commented_yaml(filename):
spaces+=' '
next;
elif char == '#':
last_non_comment_spaces = spaces
comment_count += 1
comment = line[char_count:-1]
out_str += "%scomment%i_%i: '%s'\n" % (last_non_comment_spaces, comment_count, len(spaces), comment)