def undo(self, workflow_dict):
     context_dict = {
         'STOPDB': True,
     }
     
     ret_script = run_vm_script(
         workflow_dict = workflow_dict,
         context_dict = context_dict,
         script = workflow_dict['original_cloudstackpack'].script,
     )
     
     return ret_script
Ejemplo n.º 2
0
    def undo(self, workflow_dict):
        context_dict = {
            'CONFIGFILE': True,
        }

        ret_script = run_vm_script(
            workflow_dict=workflow_dict,
            context_dict=context_dict,
            script=workflow_dict['original_cloudstackpack'].script,
        )

        return ret_script
 def do(self, workflow_dict):
     context_dict = {
         'STARTDB': True,
     }
     
     ret_script = run_vm_script(
         workflow_dict = workflow_dict,
         context_dict = context_dict,
         script = workflow_dict['cloudstackpack'].script,
     )
     
     return ret_script