Strip whitespace when reading limit file (#53564)

Fix #17088
pull/4420/head
Sebastian Meyer 2019-03-18 17:40:45 +01:00 committed by ansibot
parent e00f315358
commit 8d7efa7d32
1 changed files with 1 additions and 1 deletions

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)