1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

cast ssh port number as integer

This commit is contained in:
Matt Coddington 2012-04-24 00:38:24 -04:00
parent 89c013035e
commit d34160ed26

View file

@ -95,7 +95,7 @@ class ParamikoConnection(object):
if 'hostname' in credentials: if 'hostname' in credentials:
self.host = credentials['hostname'] self.host = credentials['hostname']
if 'port' in credentials: if 'port' in credentials:
self.port = credentials['port'] self.port = int(credentials['port'])
if 'user' in credentials: if 'user' in credentials:
user = credentials['user'] user = credentials['user']
if 'identityfile' in credentials: if 'identityfile' in credentials: