Commit 8a3ea077 by Michael DeHaan

Update error message since user may have specified connection type via non…

Update error message since user may have specified connection type via non command line or by default.
parent 5eea4b56
......@@ -82,7 +82,7 @@ class Connection(object):
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p.communicate()
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()
return ["sshpass", "-d%d" % self.rfd]
return []
......
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