#NEWLINE# def _get( self , url , response_key = None ) : #NEWLINE# #INDENT# kwargs = { #NEWLINE# #INDENT# 'headers' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# kwargs [ 'headers' ] [ 'Content-Type' ] = 'x-application/yaml' #NEWLINE# resp = self . client . get ( response_key , ** kwargs ) #NEWLINE# try : #NEWLINE# #INDENT# resp_plan = yamlutils . load ( resp . content ) #NEWLINE# #UNINDENT# except ValueError as e : #NEWLINE# #INDENT# raise exc . CommandException ( message = ( 'Could not load Plan. Reason: %s' % e . message ) ) #NEWLINE# #UNINDENT# return Plan ( self , resp_plan , loaded = True )