Make gpg.verify respect gnupghome

This commit is contained in:
jeanluc 2022-11-30 17:19:14 +01:00 committed by Megan Wilhite
parent 2e7b224608
commit 42891c8c61
2 changed files with 2 additions and 1 deletions

1
changelog/63145.fixed Normal file
View file

@ -0,0 +1 @@
Fixed gpg.verify does not respect gnupghome

View file

@ -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: