1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #4029 from guersam/patch-1

Fix: raise correct error in accelerate mode
This commit is contained in:
James Cammarata 2013-09-05 06:44:52 -07:00
commit eae0cb5d81

View file

@ -145,7 +145,7 @@ class Connection(object):
data = utils.jsonify(data)
data = utils.encrypt(self.key, data)
if self.send_data(data):
raise errors.AnisbleError("Failed to send command to %s" % self.host)
raise errors.AnsibleError("Failed to send command to %s" % self.host)
response = self.recv_data()
if not response: