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:
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue