no comma, just strip

pull/83739/head
Brian Coca 4 months ago
parent 22078344d2
commit 1751a79b30

@ -52,13 +52,10 @@ class InventoryModule(BaseInventoryPlugin):
super(InventoryModule, self).parse(inventory, loader, path)
# not really a path at this point
host_list = path
# not really a path at this point, also remove token
host_list = path.lstrip(self._TOKEN)
for h in host_list.split(','):
if h == self._TOKEN:
# skip marker
continue
h = h.strip()
if h:

Loading…
Cancel
Save