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:
parent
143a20a15f
commit
c4cba7d6fe
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user