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

pull/41119/merge
Ben Thomasson 6 years ago 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)

Loading…
Cancel
Save