Update migrate_config.py
Corrected loop condition to not run if configuration file only contains new lines.
@@ -22,8 +22,7 @@ def _migrate_map(contents):
lines = contents.splitlines(True)
i = 0
# Only loop on non empty configuration file
- if i < len(lines):
- while _is_header_line(lines[i]):
+ while i < len(lines) and _is_header_line(lines[i]):
i += 1
header = ''.join(lines[:i])
