def item(*args, **kwargs):
 ret = {}
 default = kwargs.get('default', '')
 delimiter = kwargs.get('delimiter', DEFAULT_TARGET_DELIM)
 try:
  for arg in args:
   ret[arg] = salt.utils.traverse_dict_and_list(__grains__, arg, default, delimiter)
 except KeyError:
  pass
 if salt.utils.is_true(kwargs.get('sanitize')):
  for (arg, func) in six.iteritems(_SANITIZERS):
   if (arg in ret):
    ret[arg] = func(ret[arg])
 return ret

def item ( * args , ** kwargs ) : ret = { } default = kwargs . get ( 'default' , '' ) delimiter = kwargs . get ( 'delimiter' , DEFAULT_TARGET_DELIM ) try : for arg in args : ret [ arg ] = salt . utils . traverse_dict_and_list ( __grains__ , arg , default , delimiter ) except KeyError : pass if salt . utils . is_true ( kwargs . get ( 'sanitize' ) ) : for ( arg , func ) in six . iteritems ( _SANITIZERS ) : if ( arg in ret ) : ret [ arg ] = func ( ret [ arg ] ) return ret
rest controller for items .