#NEWLINE# def add_plugin_with_tasks( self , task_id ) : #NEWLINE# #INDENT# deployment_tasks = self . env . get_default_plugin_deployment_tasks ( id = task_id , type = 'skipped' , role = [ 'compute' ] ) #NEWLINE# tasks = self . env . get_default_plugin_tasks ( role = [ 'compute' ] ) #NEWLINE# tasks . extend ( self . env . get_default_plugin_tasks ( role = [ 'compute' ] , stage = 'pre_deployment' ) ) #NEWLINE# self . env . create_plugin ( cluster = self . cluster , enabled = True , package_version = '4.0.0' , deployment_tasks = deployment_tasks , tasks = self ) #NEWLINE# self . db . flush ( )