From c4cba7d6fe1965d15351d7f9209376cabd629d37 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Mon, 9 Oct 2017 09:56:34 -0700 Subject: [PATCH] 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] https://github.com/ansible/ansible/commit/1665178626ac74cdee4ec28abfc285926c41f0d9 Change-Id: I1bbfddcda49b8c8a6ae21ee77d51c6db19cb212e --- connection/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection/ssh.py b/connection/ssh.py index 016dd34..1cd6a0a 100644 --- a/connection/ssh.py +++ b/connection/ssh.py @@ -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,