def _get_key_dir():
 if ('config.get' in __salt__):
  gpg_keydir = __salt__['config.get']('gpg_keydir')
 else:
  gpg_keydir = __opts__.get('gpg_keydir')
 return (gpg_keydir or os.path.join(__opts__['config_dir'], 'gpgkeys'))

def _get_key_dir ( ) : if ( 'config.get' in __salt__ ) : gpg_keydir = __salt__ [ 'config.get' ] ( 'gpg_keydir' ) else : gpg_keydir = __opts__ . get ( 'gpg_keydir' ) return ( gpg_keydir or os . path . join ( __opts__ [ 'config_dir' ] , 'gpgkeys' ) )
return the location of the gpg key directory .