#NEWLINE# @ log . log_method_call #NEWLINE# def update_servicechain_instance( self , context , servicechain_instance_id , servicechain_instance ) : #NEWLINE# #INDENT# session = context . session #NEWLINE# with session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# original_sc_instance = self . get_servicechain_instance ( context , servicechain_instance_id ) #NEWLINE# updated_sc_instance = super ( ServiceChainPlugin , self ) . update_servicechain_instance ( context , servicechain_instance_id , servicechain_instance ) #NEWLINE# sc_context = servicechain_context . ServiceChainInstanceContext ( self , context , updated_sc_instance , original_sc_instance = original_sc_instance ) #NEWLINE# self . driver_manager . update_servicechain_instance_precommit ( sc_context ) #NEWLINE# #UNINDENT# self . driver_manager . update_servicechain_instance_postcommit ( sc_context ) #NEWLINE# return updated_sc_instance