def _get_top_states(saltenv='base'):
    '''
    Equivalent to a salt cli: salt web state.show_top
    '''
    alt_states = []
    try:
        returned = __salt__['state.show_top']()
        for i in returned[saltenv]:
            alt_states.append(i)
    except Exception:
        raise
    # log.info("top states: %s", alt_states)
    return alt_states
def _get_top_states ( saltenv = 'base' ) : alt_states = [ ] try : returned = __salt__ [ 'state.show_top' ] ( ) for i in returned [ saltenv ] : alt_states . append ( i ) except Exception : raise return alt_states
Equivalent to a salt cli: salt web state.show_top