Fix typo in the ansible-inventory --host error (#41142)

This commit is contained in:
Ben Thomasson 2018-06-05 14:03:27 -04:00 committed by Sviatoslav Sydorenko
parent a9dc79e07b
commit 01e1b51e33

View file

@ -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)