def ext(external, pillar=None):
 if isinstance(external, six.string_types):
  external = yaml.safe_load(external)
 pillar_obj = salt.pillar.get_pillar(__opts__, __grains__, __opts__['id'], __opts__['environment'], ext=external, pillar=pillar)
 ret = pillar_obj.compile_pillar()
 return ret

def ext ( external , pillar = None ) : if isinstance ( external , six . string_types ) : external = yaml . safe_load ( external ) pillar_obj = salt . pillar . get_pillar ( __opts__ , __grains__ , __opts__ [ 'id' ] , __opts__ [ 'environment' ] , ext = external , pillar = pillar ) ret = pillar_obj . compile_pillar ( ) return ret
generate the pillar and apply an explicit external pillar cli example: pillar : none if specified .