def read_(path, key=None, profile=None):
 result = _query('GET', path, profile=profile, decode=True, decode_type='json')
 data = result['dict'].get('data', {})
 if (key is None):
  return data
 value = data.get(key)
 if (value is None):
  log.error('The key was not found')
 return value

def read_ ( path , key = None , profile = None ) : result = _query ( 'GET' , path , profile = profile , decode = True , decode_type = 'json' ) data = result [ 'dict' ] . get ( 'data' , { } ) if ( key is None ) : return data value = data . get ( key ) if ( value is None ) : log . error ( 'The key was not found' ) return value
get a value from the vault service .