Make connection plugin 2.4.1 compatible

In a recent Ansible change[0], when the set_host_overrides function is
overridden it will need to include an additional argument.

[0]
1665178626

Change-Id: I1bbfddcda49b8c8a6ae21ee77d51c6db19cb212e
This commit is contained in:
Jimmy McCrory 2017-10-09 09:56:34 -07:00
parent 143a20a15f
commit c4cba7d6fe
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class Connection(SSH.Connection):
else:
self.physical_host = None
def set_host_overrides(self, host, hostvars=None):
def set_host_overrides(self, host, hostvars=None, templar=None):
if self._container_check() or self._chroot_check():
physical_host_addrs = hostvars.get('physical_host_addrs', {})
physical_host_addr = physical_host_addrs.get(self.physical_host,