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:
parent
2741a21e2f
commit
b8afd8d38f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue