mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
host: skip lines beginning with new line
This commit is contained in:
@@ -100,7 +100,7 @@ class Host(object):
|
||||
f.close()
|
||||
|
||||
for lineno, line in enumerate(self._hostsfile_lines):
|
||||
if line.startswith("#"):
|
||||
if line.startswith("#") or line.startswith("\n"):
|
||||
continue
|
||||
|
||||
ip = line.split()[0:1]
|
||||
|
||||
Reference in New Issue
Block a user