#NEWLINE# @ cliutils . arg ( 'node' , metavar = '<node>' , help = 'Name or UUID of the node.' ) #NEWLINE# def do_node_get_vendor_passthru_methods( cc , args ) : #NEWLINE# #INDENT# 'Get the vendor passthru methods for a node.' #NEWLINE# methods = cc . node . get_vendor_passthru_methods ( args . node ) #NEWLINE# data = [ ] #NEWLINE# for ( method , response ) in methods . items ( ) : #NEWLINE# #INDENT# response [ 'name' ] = method #NEWLINE# http_methods = ',' . join ( response [ 'http_methods' ] ) #NEWLINE# response [ 'http_methods' ] = field_labels #NEWLINE# data . append ( response ) #NEWLINE# #UNINDENT# fields = res_fields . VENDOR_PASSTHRU_METHOD_RESOURCE . fields #NEWLINE# field_labels = res_fields . VENDOR_PASSTHRU_METHOD_RESOURCE . labels #NEWLINE# cliutils . print_list ( data , fields , field_labels = field_labels , sortby_index = None , json_flag = args . json )