added stderr from vault script to error

pull/14687/head
Brian Coca 9 years ago
parent 75ae62a978
commit e24e619cf1

@ -524,7 +524,7 @@ class CLI(object):
raise AnsibleError("Problem running vault password script %s (%s). If this is not a script, remove the executable bit from the file." % (' '.join(this_path), e))
stdout, stderr = p.communicate()
if p.returncode != 0:
raise AnsibleError("Vault password script %s returned non-zero (%s)." % (this_path, p.returncode))
raise AnsibleError("Vault password script %s returned non-zero (%s): %s" % (this_path, p.returncode, p.stderr))
vault_pass = stdout.strip('\r\n')
else:
try:

Loading…
Cancel
Save