mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Fix typo in the ansible-inventory --host error (#41142)
This commit is contained in:
parent
a9dc79e07b
commit
01e1b51e33
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ class InventoryCLI(CLI):
|
||||||
if self.options.host:
|
if self.options.host:
|
||||||
hosts = self.inventory.get_hosts(self.options.host)
|
hosts = self.inventory.get_hosts(self.options.host)
|
||||||
if len(hosts) != 1:
|
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])
|
myvars = self._get_host_variables(host=hosts[0])
|
||||||
self._remove_internal(myvars)
|
self._remove_internal(myvars)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue