def _get_key_api():
 if ('keyapi' not in __context__):
  __context__['keyapi'] = salt.key.Key(__opts__)
 return __context__['keyapi']

def _get_key_api ( ) : if ( 'keyapi' not in __context__ ) : __context__ [ 'keyapi' ] = salt . key . Key ( __opts__ ) return __context__ [ 'keyapi' ]
return the key api hook .