mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
updated logic to properly detect GPG_KEYDIR path
This commit is contained in:
parent
bc9750b85e
commit
6afb344fe3
1 changed files with 5 additions and 1 deletions
|
@ -108,7 +108,11 @@ LOG = logging.getLogger(__name__)
|
|||
|
||||
GPG_BINARY = salt.utils.which('gpg')
|
||||
GPG_HEADER = re.compile(r'-----BEGIN PGP MESSAGE-----')
|
||||
DEFAULT_GPG_KEYDIR = os.path.join(salt.syspaths.CONFIG_DIR, 'gpgkeys')
|
||||
|
||||
if __salt__['config.get']('gpg_keydir'):
|
||||
DEFAULT_GPG_KEYDIR = __salt__['config.get']('gpg_keydir')
|
||||
else:
|
||||
DEFAULT_GPG_KEYDIR = os.path.join(salt.syspaths.CONFIG_DIR, 'gpgkeys')
|
||||
|
||||
|
||||
def _decrypt_ciphertext(cipher):
|
||||
|
|
Loading…
Add table
Reference in a new issue