mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Work around bug in salt-ssh in config.get for gpg renderer
This commit is contained in:
parent
168508ec2a
commit
d73979ee12
@ -135,9 +135,10 @@ def render(gpg_data, saltenv='base', sls='', argline='', **kwargs):
|
||||
'''
|
||||
if not HAS_GPG:
|
||||
raise SaltRenderError('GPG unavailable')
|
||||
homedir = None
|
||||
if 'config.get' in __salt__:
|
||||
homedir = __salt__['config.get']('gpg_keydir', DEFAULT_GPG_KEYDIR)
|
||||
else:
|
||||
homedir = __salt__['config.get']('gpg_keydir', None)
|
||||
if homedir is None:
|
||||
homedir = __opts__.get('gpg_keydir', DEFAULT_GPG_KEYDIR)
|
||||
log.debug('Reading GPG keys from: {0}'.format(homedir))
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user