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 }
```
This commit is contained in:
Gonéri Le Bouder
2020-12-02 14:10:07 -05:00
committed by GitHub
parent 86ce0b5556
commit 11191e40b0
2 changed files with 3 additions and 3 deletions

View File

@@ -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:

View File

@@ -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