def show_top(queue=False, **kwargs):
 opts = copy.deepcopy(__opts__)
 if ('env' in kwargs):
  salt.utils.warn_until('Oxygen', "Parameter 'env' has been detected in the argument list.  This parameter is no longer used and has been replaced by 'saltenv' as of Salt 2016.11.0.  This warning will be removed in Salt Oxygen.")
  kwargs.pop('env')
 if ('saltenv' in kwargs):
  opts['environment'] = kwargs['saltenv']
 conflict = _check_queue(queue, kwargs)
 if (conflict is not None):
  return conflict
 st_ = salt.state.HighState(opts)
 errors = []
 top_ = st_.get_top()
 errors += st_.verify_tops(top_)
 if errors:
  __context__['retcode'] = 1
  return errors
 matches = st_.top_matches(top_)
 return matches

def show_top ( queue = False , ** kwargs ) : opts = copy . deepcopy ( __opts__ ) if ( 'env' in kwargs ) : salt . utils . warn_until ( 'Oxygen' , "Parameter 'env' has been detected in the argument list.  This parameter is no longer used and has been replaced by 'saltenv' as of Salt 2016.11.0.  This warning will be removed in Salt Oxygen." ) kwargs . pop ( 'env' ) if ( 'saltenv' in kwargs ) : opts [ 'environment' ] = kwargs [ 'saltenv' ] conflict = _check_queue ( queue , kwargs ) if ( conflict is not None ) : return conflict st_ = salt . state . HighState ( opts ) errors = [ ] top_ = st_ . get_top ( ) errors += st_ . verify_tops ( top_ ) if errors : __context__ [ 'retcode' ] = 1 return errors matches = st_ . top_matches ( top_ ) return matches
return the top data that the minion will use for a highstate cli example: .