Support multiple messages from delete_stack
This updates the workflow wrapper to use the multiple message interface. NOTE: the test for this patch use the fake websocket that was updated in a previous patch, so while this code is tested, no test updates were needed for this change. Change-Id: I6f6b09589646b6eaf5811fdf23558c949fbbc2b8 Partial-Bug: #1646887
This commit is contained in:
parent
1b07468764
commit
0f2b860d86
@ -44,6 +44,6 @@ def delete_stack(clients, stack):
|
||||
)
|
||||
|
||||
with tripleoclient.messaging_websocket(queue_name) as ws:
|
||||
rtn_message = ws.wait_for_message(execution.id)
|
||||
if rtn_message['status'] != "SUCCESS":
|
||||
raise InvalidConfiguration(rtn_message['message'])
|
||||
for payload in base.wait_for_messages(workflow_client, ws, execution):
|
||||
if payload['status'] != "SUCCESS":
|
||||
raise InvalidConfiguration(payload['message'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user