mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-07-28 18:34:42 +00:00
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:
@@ -64,7 +64,7 @@
|
|||||||
field_selectors:
|
field_selectors:
|
||||||
- status.phase=Running
|
- status.phase=Running
|
||||||
register: scale_down_deploy_pods
|
register: scale_down_deploy_pods
|
||||||
until: "{{ scale_down_deploy_pods.resources | length == 0 }}"
|
until: scale_down_deploy_pods.resources | length == 0
|
||||||
retries: 6
|
retries: 6
|
||||||
delay: 5
|
delay: 5
|
||||||
|
|
||||||
@@ -193,7 +193,7 @@
|
|||||||
register: scale_down_no_wait_pods
|
register: scale_down_no_wait_pods
|
||||||
retries: 6
|
retries: 6
|
||||||
delay: 5
|
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
|
- name: Ensure that scale down without wait worked
|
||||||
assert:
|
assert:
|
||||||
|
|||||||
@@ -249,7 +249,7 @@
|
|||||||
field_selectors:
|
field_selectors:
|
||||||
- status.phase=Running
|
- status.phase=Running
|
||||||
register: updated_deploy_pods
|
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
|
retries: 6
|
||||||
delay: 5
|
delay: 5
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user