Publish error for package_update workflow

The package_update workbook need to publish the execption
when something failed with heat stack update

Change-Id: I8db298e885e110f1b8852893b76b36d3465df6c2
This commit is contained in:
Mathieu Bultel 2019-01-15 15:23:17 +01:00
parent 2741a21e2f
commit b8afd8d38f
1 changed files with 10 additions and 2 deletions

View File

@ -38,14 +38,22 @@ workflows:
input:
timeout: <% $.timeout %>
container: <% $.container %>
on-success: send_message
publish-on-error:
message: <% task().result %>
on-success: set_update_success
on-error: set_update_failed
set_update_failed:
on-success: send_message
publish:
status: FAILED
message: <% task(update).result %>
update_status: UPDATE_FAILED
set_update_success:
on-success: send_message
publish:
status: SUCCESS
update_status: UPDATE_SUCCESS
send_message:
workflow: tripleo.messaging.v1.send