mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix typo in the ansible-inventory --host error (#41142)
This commit is contained in:
committed by
Sviatoslav Sydorenko
parent
a9dc79e07b
commit
01e1b51e33
@@ -161,7 +161,7 @@ class InventoryCLI(CLI):
|
||||
if self.options.host:
|
||||
hosts = self.inventory.get_hosts(self.options.host)
|
||||
if len(hosts) != 1:
|
||||
raise AnsibleOptionsError("You must pass a single valid host to --hosts parameter")
|
||||
raise AnsibleOptionsError("You must pass a single valid host to --host parameter")
|
||||
|
||||
myvars = self._get_host_variables(host=hosts[0])
|
||||
self._remove_internal(myvars)
|
||||
|
||||
Reference in New Issue
Block a user