Merge "Fix failed to remove VIM monitor due to running execution"
This commit is contained in:
commit
e82f84a559
|
@ -762,7 +762,7 @@ class OpenStack_Driver(abstract_vim_driver.VimAbstractDriver,
|
|||
|
||||
def delete_execution(self, execution_id, auth_dict=None):
|
||||
return self.get_mistral_client(auth_dict).executions \
|
||||
.delete(execution_id)
|
||||
.delete(execution_id, force=True)
|
||||
|
||||
def delete_workflow(self, workflow_id, auth_dict=None):
|
||||
return self.get_mistral_client(auth_dict) \
|
||||
|
|
|
@ -52,7 +52,7 @@ def delete_executions(mistral_client, vim_id):
|
|||
executions = mistral_client.executions.list(
|
||||
workflow_name='vim_id_' + vim_id)
|
||||
for execution in executions:
|
||||
mistral_client.executions.delete(execution.id)
|
||||
mistral_client.executions.delete(execution.id, force=True)
|
||||
|
||||
|
||||
def delete_workflow(mistral_client, vim_id):
|
||||
|
|
Loading…
Reference in New Issue