From 712f4a631c1f24408661b6aee62c7303acc8c801 Mon Sep 17 00:00:00 2001 From: Marco Re Date: Tue, 13 May 2014 11:29:19 +0200 Subject: [PATCH] Update ssh.py Convert to string to fix runtime error due to string concat in self.common_args += ["-o", "User="+self.user] when ansible_ssh_user is numeric --- lib/ansible/runner/connection_plugins/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/connection_plugins/ssh.py b/lib/ansible/runner/connection_plugins/ssh.py index 9e42b6a368a..17895729e47 100644 --- a/lib/ansible/runner/connection_plugins/ssh.py +++ b/lib/ansible/runner/connection_plugins/ssh.py @@ -41,7 +41,7 @@ class Connection(object): self.host = host self.ipv6 = ':' in self.host self.port = port - self.user = user + self.user = str(user) self.password = password self.private_key_file = private_key_file self.HASHED_KEY_MAGIC = "|1|"