#NEWLINE# def _update_stack( self , timeout_mins , stage_env ) : #NEWLINE# #INDENT# stack_params = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# ( tpl_files , template ) = template_utils . get_template_contents ( template_file = os . path . join ( self . tht_dir , constants . TEMPLATE_NAME ) ) #NEWLINE# env_paths = [ ] #NEWLINE# if self . environment_files : #NEWLINE# #INDENT# env_paths . extend ( self . environment_files ) #NEWLINE# #UNINDENT# env_paths . append ( os . path . join ( self . tht_dir , 'environments' , stage_env ) ) #NEWLINE# ( env_files , env ) = template_utils . process_multiple_environments_and_files ( env_paths = env_paths ) #NEWLINE# fields = { #NEWLINE# #INDENT# 'existing' : True , #NEWLINE# 'stack_id' : self . stack . id , #NEWLINE# 'template' : template , #NEWLINE# 'files' : dict ( ( list ( tpl_files . items ( ) ) + list ( env_files . items ( ) ) ) ) , #NEWLINE# 'environment' : env , #NEWLINE# 'parameters' : stack_params , #NEWLINE# 'timeout_mins' : timeout_mins , #NEWLINE# #UNINDENT# } #NEWLINE# LOG . debug ( 'stack update params: %s' , fields ) #NEWLINE# self . heatclient . stacks . update ( ** fields )