Return a list instead of tuple when password is specified to ssh connection plugin (v2)
This commit is contained in:
parent
7733dc7bb5
commit
4f28a814ae
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue