#NEWLINE# def _show_policy( service , policy_id ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# policy = service . get_policy ( policy_id ) #NEWLINE# #UNINDENT# except sdk_exc . ResourceNotFound : #NEWLINE# #INDENT# raise exc . CommandError ( ( _ ( 'Policy not found: %s' ) % policy_id ) ) #NEWLINE# #UNINDENT# formatters = { #NEWLINE# #INDENT# 'metadata' : utils . json_formatter , #NEWLINE# 'spec' : utils . json_formatter , #NEWLINE# #UNINDENT# } #NEWLINE# utils . print_dict ( policy . to_dict ( ) , formatters = formatters )