Correct comment lines output got list_hosts

This commit is contained in:
David Murphy 2017-03-09 14:20:35 -07:00
parent 801ff28053
commit e7b9a45079

View file

@ -53,7 +53,7 @@ def _list_hosts():
if not line:
continue
if line.startswith('#'):
ret.setdefault('comment-{0}'.format(count), []).extend(line)
ret.setdefault('comment-{0}'.format(count), []).append(line)
count += 1
continue
if '#' in line: