Commit 712f4a63 by Marco Re

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
parent 41169666
...@@ -41,7 +41,7 @@ class Connection(object): ...@@ -41,7 +41,7 @@ class Connection(object):
self.host = host self.host = host
self.ipv6 = ':' in self.host self.ipv6 = ':' in self.host
self.port = port self.port = port
self.user = user self.user = str(user)
self.password = password self.password = password
self.private_key_file = private_key_file self.private_key_file = private_key_file
self.HASHED_KEY_MAGIC = "|1|" self.HASHED_KEY_MAGIC = "|1|"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment