Don't exit on RUNNING status on delete

In delete node and delete stack, we exit on non SUCCESS messages, but
mistral also sends us RUNNING messages when calling stack list, that we
should consume.

Change-Id: I45442ef2c622463a957c84be47f38ec4528001ac
Closes-Bug: #1804660
This commit is contained in:
Thomas Herve 2018-11-22 15:16:54 +01:00
parent 71b80730e8
commit c821bbe2b7
2 changed files with 8 additions and 2 deletions

View File

@ -31,7 +31,10 @@ def delete_node(clients, **workflow_input):
)
for payload in base.wait_for_messages(workflow_client, ws, execution):
if payload['status'] != "SUCCESS":
status = payload['status']
if status == 'RUNNING':
continue
if status != 'SUCCESS':
raise InvalidConfiguration(payload['message'])

View File

@ -40,5 +40,8 @@ def delete_stack(clients, stack):
)
for payload in base.wait_for_messages(workflow_client, ws, execution):
if payload['status'] != "SUCCESS":
status = payload['status']
if status == 'RUNNING':
continue
if status != 'SUCCESS':
raise InvalidConfiguration(payload['message'])