mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
e00f315358
commit
8d7efa7d32
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ class InventoryManager(object):
|
||||||
for x in subset_patterns:
|
for x in subset_patterns:
|
||||||
if x.startswith("@"):
|
if x.startswith("@"):
|
||||||
fd = open(x[1:])
|
fd = open(x[1:])
|
||||||
results.extend(fd.read().split("\n"))
|
results.extend([l.strip() for l in fd.read().split("\n")])
|
||||||
fd.close()
|
fd.close()
|
||||||
else:
|
else:
|
||||||
results.append(x)
|
results.append(x)
|
||||||
|
|
Loading…
Reference in a new issue