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

This commit is contained in:
James Cammarata 2015-05-06 08:46:33 -05:00
parent 7733dc7bb5
commit 4f28a814ae

View file

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