#NEWLINE# @ utils . arg ( 'id' , metavar = '<ACTION>' , help = _ ( 'Name or ID of the action to show the details for.' ) ) #NEWLINE# def do_action_show( service , args ) : #NEWLINE# #INDENT# 'Show detailed info about the specified action.' #NEWLINE# show_deprecated ( 'senlin action-show' , 'openstack cluster action show' ) #NEWLINE# try : #NEWLINE# #INDENT# action = service . get_action ( args . id ) #NEWLINE# #UNINDENT# except sdk_exc . ResourceNotFound : #NEWLINE# #INDENT# raise exc . CommandError ( ( _ ( 'Action not found: %s' ) % args . id ) ) #NEWLINE# #UNINDENT# formatters = { #NEWLINE# #INDENT# 'inputs' : utils . json_formatter , #NEWLINE# 'outputs' : utils . json_formatter , #NEWLINE# 'metadata' : utils . json_formatter , #NEWLINE# 'data' : utils . json_formatter , #NEWLINE# 'depends_on' : utils . list_formatter , #NEWLINE# 'depended_by' : utils . list_formatter , #NEWLINE# #UNINDENT# } #NEWLINE# utils . print_dict ( action . to_dict ( ) , formatters = service )