From d34160ed26584d9e822396339433be92b5d8d747 Mon Sep 17 00:00:00 2001 From: Matt Coddington Date: Tue, 24 Apr 2012 00:38:24 -0400 Subject: [PATCH] cast ssh port number as integer --- lib/ansible/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/connection.py b/lib/ansible/connection.py index 2c6103a5a9..02dfd4d0c8 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: