Commit 4f28a814 by James Cammarata

Return a list instead of tuple when password is specified to ssh connection plugin (v2)

parent 7733dc7b
...@@ -144,7 +144,7 @@ class Connection(ConnectionBase): ...@@ -144,7 +144,7 @@ class Connection(ConnectionBase):
except OSError: except OSError:
raise AnsibleError("to use the 'ssh' connection type with passwords, you must install the sshpass program") raise AnsibleError("to use the 'ssh' connection type with passwords, you must install the sshpass program")
(self.rfd, self.wfd) = os.pipe() (self.rfd, self.wfd) = os.pipe()
return ("sshpass", "-d{0}".format(self.rfd)) return ["sshpass", "-d{0}".format(self.rfd)]
return [] return []
def _send_password(self): def _send_password(self):
......
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