From 11191e40b077a5b7970b2f43c248ab81212063bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Wed, 2 Dec 2020 14:10:07 -0500 Subject: [PATCH] molecule: conditional statements should not include jinja2 templating (#305) This address the following warning: ``` [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ scale_down_no_wait_pods.resources | length == 1 } ``` --- molecule/default/tasks/scale.yml | 4 ++-- molecule/default/tasks/waiter.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/molecule/default/tasks/scale.yml b/molecule/default/tasks/scale.yml index 32b718df..9e0c31a0 100644 --- a/molecule/default/tasks/scale.yml +++ b/molecule/default/tasks/scale.yml @@ -64,7 +64,7 @@ field_selectors: - status.phase=Running register: scale_down_deploy_pods - until: "{{ scale_down_deploy_pods.resources | length == 0 }}" + until: scale_down_deploy_pods.resources | length == 0 retries: 6 delay: 5 @@ -193,7 +193,7 @@ register: scale_down_no_wait_pods retries: 6 delay: 5 - until: "{{ scale_down_no_wait_pods.resources | length == 1 }}" + until: scale_down_no_wait_pods.resources | length == 1 - name: Ensure that scale down without wait worked assert: diff --git a/molecule/default/tasks/waiter.yml b/molecule/default/tasks/waiter.yml index 4049f6ef..303cb2d1 100644 --- a/molecule/default/tasks/waiter.yml +++ b/molecule/default/tasks/waiter.yml @@ -249,7 +249,7 @@ field_selectors: - status.phase=Running register: updated_deploy_pods - until: "{{ updated_deploy_pods.resources[0].spec.containers[0].image.endswith(':2') }}" + until: updated_deploy_pods.resources[0].spec.containers[0].image.endswith(':2') retries: 6 delay: 5