Use len to compare list at mistral

Looks like mistral has issues using empty list [] comparation to check
if the list is empty or not, let's just use len.

This is needed since https://review.openstack.org/#/c/637507/ is not
merged.

Change-Id: Ifd04d741bd92b2ada5f181ed87ed5b07c0e01d48
Closes-Bug: #1816026
This commit is contained in:
Quique Llorente 2019-02-18 11:53:19 +01:00
parent 0d4e62238f
commit 573f67df3d
1 changed files with 2 additions and 2 deletions

View File

@ -401,8 +401,8 @@ workflows:
publish:
running_config_download_workflows: <% task().result.where($.id != execution().id) %>
on-success:
- fail_deploy_in_progress: <% $.running_config_download_workflows != [] %>
- get_blacklisted_hostnames: <% $.running_config_download_workflows = [] %>
- fail_deploy_in_progress: <% $.running_config_download_workflows.len() > 0 %>
- get_blacklisted_hostnames: <% $.running_config_download_workflows.len() = 0 %>
fail_deploy_in_progress:
workflow: tripleo.messaging.v1.send