def get_async_pillar(opts, grains, minion_id, saltenv=None, ext=None, funcs=None, pillar=None, pillarenv=None):
 ptype = {'remote': AsyncRemotePillar, 'local': AsyncPillar}.get(opts['file_client'], AsyncPillar)
 return ptype(opts, grains, minion_id, saltenv, ext, functions=funcs, pillar=pillar, pillarenv=pillarenv)

def get_async_pillar ( opts , grains , minion_id , saltenv = None , ext = None , funcs = None , pillar = None , pillarenv = None ) : ptype = { 'remote' : AsyncRemotePillar , 'local' : AsyncPillar } . get ( opts [ 'file_client' ] , AsyncPillar ) return ptype ( opts , grains , minion_id , saltenv , ext , functions = funcs , pillar = pillar , pillarenv = pillarenv )
return the correct pillar driver based on the file_client option .