mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
Update error message since user may have specified connection type via non command line or by default.
This commit is contained in:
parent
5eea4b56fa
commit
8a3ea0774a
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ class Connection(object):
|
||||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
p.communicate()
|
p.communicate()
|
||||||
except OSError:
|
except OSError:
|
||||||
raise errors.AnsibleError("to use -c ssh with passwords, you must install the sshpass program")
|
raise errors.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%d" % self.rfd]
|
return ["sshpass", "-d%d" % self.rfd]
|
||||||
return []
|
return []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue