mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix ansible_ssh_host again
This time with unit tests to ensure it keeps working.
This commit is contained in:
@@ -393,7 +393,7 @@ class Runner(object):
|
||||
if actual_port is not None:
|
||||
actual_port = int(actual_port)
|
||||
conn = self.connector.connect(actual_host, actual_port)
|
||||
if delegate_to:
|
||||
if delegate_to or host != actual_host:
|
||||
conn.delegate = host
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user