From e24e619cf1d8d54442acdf580bf8dd0bd88a0ffe Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 7 Mar 2016 20:51:58 -0500 Subject: [PATCH] added stderr from vault script to error --- lib/ansible/cli/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/cli/__init__.py b/lib/ansible/cli/__init__.py index cfc2e95779b..e901940f039 100644 --- a/lib/ansible/cli/__init__.py +++ b/lib/ansible/cli/__init__.py @@ -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: