diff --git a/lib/ansible/connection.py b/lib/ansible/connection.py index 2c6103a5a9d..02dfd4d0c87 100644 --- a/lib/ansible/connection.py +++ b/lib/ansible/connection.py @@ -95,7 +95,7 @@ class ParamikoConnection(object): if 'hostname' in credentials: self.host = credentials['hostname'] if 'port' in credentials: - self.port = credentials['port'] + self.port = int(credentials['port']) if 'user' in credentials: user = credentials['user'] if 'identityfile' in credentials: