ansible-lint: Don’t compare to literal True/False (#4499)

This commit is contained in:
Maxime Guyot
2019-04-17 17:42:03 +02:00
committed by Kubernetes Prow Robot
parent d4b9f15c0a
commit 37eac010c8
11 changed files with 22 additions and 17 deletions

View File

@@ -18,7 +18,7 @@
with_dict:
- "{{ images }}"
when:
- item.value.converted|bool != true
- not (item.value.converted|bool)
register: converted
- name: Make sure all images are ending with qcow2
@@ -26,7 +26,7 @@
with_dict:
- "{{ images }}"
when:
- item.value.converted|bool == true
- item.value.converted|bool
- name: Resize images
command: qemu-img resize {{ images_dir }}/{{ item.key }}.qcow2 +8G