#NEWLINE# @ utils . arg ( 'type_name' , metavar = '<TYPE_NAME>' , help = _ ( 'Profile type to retrieve.' ) ) #NEWLINE# @ utils . arg ( '-F' , '--format' , metavar = '<FORMAT>' , choices = utils . supported_formats . keys ( ) , help = ( _ ( 'The template output format, one of: %s.' ) % ', ' . join ( utils . supported_formats . keys ( ) ) ) ) #NEWLINE# def do_profile_type_show( service , args ) : #NEWLINE# #INDENT# 'Get the details about a profile type.' #NEWLINE# show_deprecated ( 'senlin profile-type-show' , 'openstack cluster profile type show' ) #NEWLINE# try : #NEWLINE# #INDENT# res = service . get_profile_type ( args . type_name ) #NEWLINE# #UNINDENT# except sdk_exc . ResourceNotFound : #NEWLINE# #INDENT# raise exc . CommandError ( ( _ ( 'Profile Type not found: %s' ) % args . type_name ) ) #NEWLINE# #UNINDENT# pt = res . to_dict ( ) #NEWLINE# if args . format : #NEWLINE# #INDENT# print ( utils . format_output ( pt , format = args . format ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( utils . format_output ( pt ) )