now host list removes trailing/leading spaces

othewise hostnames were just 'fun'
This commit is contained in:
Brian Coca 2017-06-14 16:57:00 -04:00
parent b9688c5497
commit a54666d31e
2 changed files with 2 additions and 0 deletions

View file

@ -61,6 +61,7 @@ class InventoryModule(BaseInventoryPlugin):
try:
for h in host_list.split(','):
h = h.strip()
if h:
try:
(hostnames, port) = self._expand_hostpattern(h)

View file

@ -64,6 +64,7 @@ class InventoryModule(BaseInventoryPlugin):
try:
for h in host_list.split(','):
h = h.strip()
if h:
try:
(host, port) = parse_address(h, allow_ranges=False)