mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-03 03:42:45 +00:00
now host list removes trailing/leading spaces
othewise hostnames were just 'fun'
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user