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

pull/10943/head
James Cammarata 9 years ago
parent 7733dc7bb5
commit 4f28a814ae

@ -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):

Loading…
Cancel
Save