diff --git a/changelog/63145.fixed b/changelog/63145.fixed new file mode 100644 index 00000000000..2e38588344c --- /dev/null +++ b/changelog/63145.fixed @@ -0,0 +1 @@ +Fixed gpg.verify does not respect gnupghome diff --git a/salt/modules/gpg.py b/salt/modules/gpg.py index 8e1d9500ba2..1367036083f 100644 --- a/salt/modules/gpg.py +++ b/salt/modules/gpg.py @@ -1146,7 +1146,7 @@ def verify( salt '*' gpg.verify filename='/path/to/important.file' trustmodel=direct """ - gpg = _create_gpg(user) + gpg = _create_gpg(user, gnupghome) trustmodels = ("pgp", "classic", "tofu", "tofu+pgp", "direct", "always", "auto") if trustmodel and trustmodel not in trustmodels: