Adding the option for the stack id to stack delete

Right now it looks for stack_name only but tripleoclient is sending
the stack_id but this workbook looked only for stack_name so the stack was
never found and assumed deleted.

Because of that both openstack stack delete <stack> and openstack overcloud
delete <stack> would return instantly and wait for the stack to be
deleted.

Change-Id: I111e04696e945088aa626c1bb71582bd72390b8e
Closes-Bug: #1663423
This commit is contained in:
Adriano Petrich 2017-05-30 14:14:47 +01:00
parent d5d117cda1
commit a82f3f4153

View File

@ -47,7 +47,7 @@ workflows:
retry:
delay: 15
count: <% $.timeout / 15 %>
continue-on: <% $.stack in task(wait_for_stack_does_not_exist).result.select($.stack_name) %>
continue-on: <% $.stack in task(wait_for_stack_does_not_exist).result.select([$.stack_name, $.id]).flatten() %>
delete_stack:
input: