def ext_pillar(minion_id, pillar, url):
 log = logging.getLogger(__name__)
 data = __salt__['http.query'](url=url, decode=True, decode_type='yaml')
 if ('dict' in data):
  return data['dict']
 log.error((('Error caught on query to' + url) + '\nMore Info:\n'))
 for (k, v) in six.iteritems(data):
  log.error(((k + ' : ') + v))
 return {}

def ext_pillar ( minion_id , pillar , url ) : log = logging . getLogger ( __name__ ) data = __salt__ [ 'http.query' ] ( url = url , decode = True , decode_type = 'yaml' ) if ( 'dict' in data ) : return data [ 'dict' ] log . error ( ( ( 'Error caught on query to' + url ) + '\nMore Info:\n' ) ) for ( k , v ) in six . iteritems ( data ) : log . error ( ( ( k + ' : ' ) + v ) ) return { }
read pillar data from http response .