def list_returners(*args):
 returners_ = salt.loader.returners(__opts__, [])
 returners = set()
 if (not args):
  for func in six.iterkeys(returners_):
   returners.add(func.split('.')[0])
  return sorted(returners)
 for module in args:
  if ('*' in module):
   for func in fnmatch.filter(returners_, module):
    returners.add(func.split('.')[0])
  else:
   for func in returners_:
    mod_test = func.split('.')[0]
    if (mod_test == module):
     returners.add(mod_test)
 return sorted(returners)

def list_returners ( * args ) : returners_ = salt . loader . returners ( __opts__ , [ ] ) returners = set ( ) if ( not args ) : for func in six . iterkeys ( returners_ ) : returners . add ( func . split ( '.' ) [ 0 ] ) return sorted ( returners ) for module in args : if ( '*' in module ) : for func in fnmatch . filter ( returners_ , module ) : returners . add ( func . split ( '.' ) [ 0 ] ) else : for func in returners_ : mod_test = func . split ( '.' ) [ 0 ] if ( mod_test == module ) : returners . add ( mod_test ) return sorted ( returners )
list the returners loaded on the minion .