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:
parent
71b80730e8
commit
c821bbe2b7
|
@ -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'])
|
||||
|
||||
|
||||
|
|
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue