1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Strip whitespace when reading limit file (#53564)

Fix #17088
This commit is contained in:
Sebastian Meyer 2019-03-18 17:40:45 +01:00 committed by ansibot
parent e00f315358
commit 8d7efa7d32

View file

@ -608,7 +608,7 @@ class InventoryManager(object):
for x in subset_patterns:
if x.startswith("@"):
fd = open(x[1:])
results.extend(fd.read().split("\n"))
results.extend([l.strip() for l in fd.read().split("\n")])
fd.close()
else:
results.append(x)