Fix ansible_ssh_host again

This time with unit tests to ensure it keeps working.
This commit is contained in:
Daniel Hokka Zakrisson
2012-10-21 20:11:27 +02:00
parent 572c66b7f6
commit 1449c8ac67
4 changed files with 29 additions and 3 deletions

View File

@@ -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