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:
Dougal Matthews 2017-03-16 09:09:27 +00:00
parent 1b07468764
commit 0f2b860d86
1 changed files with 3 additions and 3 deletions

View File

@ -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'])