mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Correct comment lines output got list_hosts
This commit is contained in:
parent
801ff28053
commit
e7b9a45079
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue