Fix stack_status YAQL expression for non existent stacks

We retry few times in 'wait_for_stack_does_not_exist' workflow.
However, it's possible that the stack has dissapeared by the time
we list stacks after the delay.

Change-Id: Ic85782a4942eca09f92b4212930881878638fac6
Closes-Bug: #1812810
This commit is contained in:
Rabi Mishra 2019-01-22 13:24:20 +05:30
parent 93113e73e8
commit dc0b4dd7d2

View File

@ -92,7 +92,7 @@ workflows:
queue_name: <% $.queue_name %>
timeout: <% $.timeout %>
publish:
stack_status: <% let(stack => $.stack) -> task().result.stacks.where($.stack_name = $stack).first().stack_status %>
stack_status: <% let(stack => $.stack) -> task().result.stacks.where($.stack_name = $stack).first({}).get(stack_status) %>
retry:
delay: 15
count: <% $.timeout / 15 %>