#NEWLINE# def get_template( self , stack_name_or_id ) : #NEWLINE# #INDENT# params = { #NEWLINE# #INDENT# 'ContentType' : 'JSON' , #NEWLINE# 'StackName' : stack_name_or_id , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . make_request ( 'GetTemplate' , params , '/' , 'GET' ) #NEWLINE# body = response . read ( ) #NEWLINE# if ( response . status == 200 ) : #NEWLINE# #INDENT# return json . loads ( body ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# boto . log . error ( ( '%s %s' % ( response . status , response . reason ) ) ) #NEWLINE# boto . log . error ( ( '%s' % body ) ) #NEWLINE# raise self . ResponseError ( response . status , response . reason , body )