Merge "YAML NIC Config 2 script - fix comment indentation"
This commit is contained in:
commit
1201d46ee3
@ -60,6 +60,7 @@ def to_commented_yaml(filename):
|
|||||||
spaces+=' '
|
spaces+=' '
|
||||||
next;
|
next;
|
||||||
elif char == '#':
|
elif char == '#':
|
||||||
|
last_non_comment_spaces = spaces
|
||||||
comment_count += 1
|
comment_count += 1
|
||||||
comment = line[char_count:-1]
|
comment = line[char_count:-1]
|
||||||
out_str += "%scomment%i_%i: '%s'\n" % (last_non_comment_spaces, comment_count, len(spaces), comment)
|
out_str += "%scomment%i_%i: '%s'\n" % (last_non_comment_spaces, comment_count, len(spaces), comment)
|
||||||
|
Loading…
Reference in New Issue
Block a user