You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the passwordstore lookup plugin and the execution of pass fails (e.g. because the repository doesn't exist, the GPG key isn't present, ...) the output from Ansible simply is:
{"msg": "An unhandled exception occurred while running the lookup plugin 'pass'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Command '['pass', 'show', 'my/secret']' returned non-zero exit status 1."}
This is quite unhelpful, since the exit codes from pass aren't documented.
When no password store is present, this should output helpful information, such as
{"msg": "An unhandled exception occured while running the lookup plugin 'pass'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Command '['pass', 'show', 'my/secret']' returned non-zero exit status 1, standard error: "Error: You must run:
pass init your-gpg-id
before you may use the password store.".
This information even is available to the AnsibleError class, because the parent exception is a submodule.CalledProcessError which has a output attribute which is populated by the module.
Code of Conduct
I agree to follow the Ansible Code of Conduct
The text was updated successfully, but these errors were encountered:
Summary
When using the passwordstore lookup plugin and the execution of pass fails (e.g. because the repository doesn't exist, the GPG key isn't present, ...) the output from Ansible simply is:
This is quite unhelpful, since the exit codes from pass aren't documented.
Issue Type
Feature Idea
Component Name
passwordstore
Additional Information
When no password store is present, this should output helpful information, such as
This information even is available to the
AnsibleError
class, because the parent exception is asubmodule.CalledProcessError
which has aoutput
attribute which is populated by the module.Code of Conduct
The text was updated successfully, but these errors were encountered: