Merge "Actually fix connection plugin physical host var"
This commit is contained in:
commit
ef8c9e9196
@ -62,8 +62,9 @@ class Connection(SSH.Connection):
|
|||||||
def set_host_overrides(self, host, hostvars=None):
|
def set_host_overrides(self, host, hostvars=None):
|
||||||
if self._container_check() or self._chroot_check():
|
if self._container_check() or self._chroot_check():
|
||||||
physical_host_addr = hostvars.get('physical_host_addr')
|
physical_host_addr = hostvars.get('physical_host_addr')
|
||||||
if physical_host_addr:
|
if not physical_host_addr:
|
||||||
self.host = self._play_context.remote_addr = physical_host_addr
|
physical_host_addr = self.physical_host
|
||||||
|
self.host = self._play_context.remote_addr = physical_host_addr
|
||||||
|
|
||||||
def exec_command(self, cmd, in_data=None, sudoable=True):
|
def exec_command(self, cmd, in_data=None, sudoable=True):
|
||||||
"""run a command on the remote host."""
|
"""run a command on the remote host."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user