mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Allows delegate_to to use inventory host/port info.
This commit is contained in:
parent
8c3abe7e52
commit
a69e59ab2b
3 changed files with 23 additions and 5 deletions
|
@ -286,7 +286,7 @@ class Inventory(object):
|
|||
|
||||
host = self.get_host(hostname)
|
||||
if host is None:
|
||||
raise Exception("host not found: %s" % hostname)
|
||||
raise errors.AnsibleError("host not found: %s" % hostname)
|
||||
return host.get_variables()
|
||||
|
||||
def add_group(self, group):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue