Remove references to the current task from task() in stack.yaml

When using the task() expression function within a mistral task the name
is only needed when referncing a different task. These were found with
the mistral-lint PyPI package.

Change-Id: I8b67323f250fcfcf37a15dcc29024e5ce1506bb4
This commit is contained in:
Dougal Matthews 2017-10-20 10:21:57 +01:00
parent 29bcc32461
commit 86f341a347

View File

@ -21,7 +21,7 @@ workflows:
retry: retry:
delay: 15 delay: 15
count: <% $.timeout / 15 %> count: <% $.timeout / 15 %>
continue-on: <% task(wait_for_stack_status).result.stack_status in ['CREATE_IN_PROGRESS', 'UPDATE_IN_PROGRESS', 'DELETE_IN_PROGRESS'] %> continue-on: <% task().result.stack_status in ['CREATE_IN_PROGRESS', 'UPDATE_IN_PROGRESS', 'DELETE_IN_PROGRESS'] %>
wait_for_stack_in_progress: wait_for_stack_in_progress:
input: input:
@ -39,7 +39,7 @@ workflows:
retry: retry:
delay: 15 delay: 15
count: <% $.timeout / 15 %> count: <% $.timeout / 15 %>
continue-on: <% task(wait_for_stack_status).result.stack_status in ['CREATE_COMPLETE', 'CREATE_FAILED', 'UPDATE_COMPLETE', 'UPDATE_FAILED', 'DELETE_FAILED'] %> continue-on: <% task().result.stack_status in ['CREATE_COMPLETE', 'CREATE_FAILED', 'UPDATE_COMPLETE', 'UPDATE_FAILED', 'DELETE_FAILED'] %>
wait_for_stack_does_not_exist: wait_for_stack_does_not_exist:
input: input: