diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 61ff6ff427..063e49e845 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -400,7 +400,7 @@ class Runner(object): try: # connect - conn = self.connector.connect(actual_host, actual_port) + conn = self.connector.connect(actual_host, int(actual_port)) if delegate_to: conn.delegate = host