Remove the name from task() functions that refer to themselves

When using the task() expression function, it will default to referring
to the current tasks. This means that the name doesn't need to be provided.

Change-Id: I82db486c13a0c7d6831a2994ba07745559776079
This commit is contained in:
Dougal Matthews
2018-03-08 09:41:37 +00:00
parent a6abc4e3cf
commit 59d594dc8b
4 changed files with 5 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ workflows:
retry:
delay: 3
count: 400
continue-on: <% task(wait_for_provision_state).result.provision_state != $.target_state %>
continue-on: <% task().result.provision_state != $.target_state %>
set_power_state:
input:
@@ -49,7 +49,7 @@ workflows:
retry:
delay: 6
count: 20
continue-on: <% task(wait_for_power_state).result.power_state != $.target_state %>
continue-on: <% task().result.power_state != $.target_state %>
manual_cleaning:
input:

View File

@@ -374,7 +374,7 @@ workflows:
queue_name: <% $.queue_name %>
reproduce_command: true
publish:
log_path: <% task(run_ansible).result.get('log_path') %>
log_path: <% task().result.get('log_path') %>
on-success:
- ansible_passed: <% task().result.returncode = 0 %>
- ansible_failed: <% task().result.returncode != 0 %>

View File

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

View File

@@ -49,7 +49,7 @@ workflows:
publish:
status: SUCCESS
message: <% task().result %>
undercloud_db_password: <% task(get_database_credentials).result.variables.undercloud_db_password %>
undercloud_db_password: <% task().result.variables.undercloud_db_password %>
on-success: create_database_backup
on-error: send_message
publish-on-error: