Browse Source

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

changes/98/604298/128
Zuul 3 years ago
committed by Gerrit Code Review
parent
commit
1201d46ee3
  1. 1
      tools/yaml-nic-config-2-script.py

1
tools/yaml-nic-config-2-script.py

@ -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)

Loading…
Cancel
Save