Allows delegate_to to use inventory host/port info.

This commit is contained in:
Michael DeHaan 2012-10-16 20:57:37 -04:00
commit a69e59ab2b
3 changed files with 23 additions and 5 deletions

View file

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