def items(*args, **kwargs):
 if args:
  return item(*args)
 pillarenv = kwargs.get('pillarenv')
 if (pillarenv is None):
  if __opts__.get('pillarenv_from_saltenv', False):
   pillarenv = (kwargs.get('saltenv') or __opts__['environment'])
  else:
   pillarenv = __opts__.get('pillarenv')
 opts = copy.copy(__opts__)
 opts['pillarenv'] = pillarenv
 pillar = salt.pillar.get_pillar(opts, __grains__, opts['id'], saltenv=pillarenv, pillar=kwargs.get('pillar'), pillarenv=(kwargs.get('pillarenv') or __opts__['pillarenv']))
 return pillar.compile_pillar()

def items ( * args , ** kwargs ) : if args : return item ( * args ) pillarenv = kwargs . get ( 'pillarenv' ) if ( pillarenv is None ) : if __opts__ . get ( 'pillarenv_from_saltenv' , False ) : pillarenv = ( kwargs . get ( 'saltenv' ) or __opts__ [ 'environment' ] ) else : pillarenv = __opts__ . get ( 'pillarenv' ) opts = copy . copy ( __opts__ ) opts [ 'pillarenv' ] = pillarenv pillar = salt . pillar . get_pillar ( opts , __grains__ , opts [ 'id' ] , saltenv = pillarenv , pillar = kwargs . get ( 'pillar' ) , pillarenv = ( kwargs . get ( 'pillarenv' ) or __opts__ [ 'pillarenv' ] ) ) return pillar . compile_pillar ( )
get items from the minion datastore .