def _display_runner(rows, labels, title, display=_DEFAULT_DISPLAY):
    '''
    Display or return the rows.
    '''
    if display:
        net_runner_opts = _get_net_runner_opts()
        if net_runner_opts.get('outputter') == 'table':
            ret = salt.output.out_format({'rows': rows, 'labels': labels},
                                         'table',
                                         __opts__,
                                         title=title,
                                         rows_key='rows',
                                         labels_key='labels')
        else:
            ret = salt.output.out_format(rows,
                                         net_runner_opts.get('outputter'),
                                         __opts__)
        print(ret)
    else:
        return rows
def _display_runner ( rows , labels , title , display = _DEFAULT_DISPLAY ) : if display : net_runner_opts = _get_net_runner_opts ( ) if net_runner_opts . get ( 'outputter' ) == 'table' : ret = salt . output . out_format ( { 'rows' : rows , 'labels' : labels } , 'table' , __opts__ , title = title , rows_key = 'rows' , labels_key = 'labels' ) else : ret = salt . output . out_format ( rows , net_runner_opts . get ( 'outputter' ) , __opts__ ) print ( ret ) else : return rows
Display or return the rows.