[BUG] gpg
modules crash/fail when GNUPGHOME does not exist
#66312
Labels
Bug
broken, incorrect, or confusing behavior
Milestone
Description
The
gpg
execution module crashes when GNUPGHOME does not exist (which also makes the state module fail).Note: When invoking the
gpg
binary, it does work if the parent directory exists.Setup
Irrelevant
Steps to Reproduce the behavior
salt-call gpg.list_keys gnupghome=/tmp/tmpgnu
Expected behavior
Returns an empty list.
Screenshots
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
I will submit a PR
The text was updated successfully, but these errors were encountered: