Work around bug in salt-ssh in config.get for gpg renderer

This commit is contained in:
Colton Myers 2015-04-29 16:17:35 -06:00
parent 168508ec2a
commit d73979ee12

View File

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