mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
inventory: fix hostname check (#48789)
This commit is contained in:
parent
62b165c8d3
commit
86be056633
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ class InventoryData(object):
|
|||
''' adds a host to inventory and possibly a group if not there already '''
|
||||
|
||||
if host:
|
||||
if not isinstance(group, string_types):
|
||||
if not isinstance(host, string_types):
|
||||
raise AnsibleError("Invalid host name supplied, expected a string but got %s for %s" % (type(host), host))
|
||||
g = None
|
||||
if group:
|
||||
|
|
Loading…
Add table
Reference in a new issue