Don't compare to literal True/False
With the arrival of ansible-lint 4, comparisons to literal boolean values are now forbidden. Adjust the new violations accordingly and remove the rule 601 exclusion. Change-Id: I18ba2d7d41fabaff35d10d520037188c7d9d1249
This commit is contained in:
parent
8624201e0c
commit
b6d2616275
@ -8,5 +8,4 @@
|
|||||||
|
|
||||||
- name: Create a new key in workspace based on build UUID
|
- name: Create a new key in workspace based on build UUID
|
||||||
include: create-key-and-replace.yaml
|
include: create-key-and-replace.yaml
|
||||||
when:
|
when: not zuul_temp_ssh_key_stat.stat.exists
|
||||||
- zuul_temp_ssh_key_stat.stat.exists != True
|
|
||||||
|
@ -117,7 +117,7 @@
|
|||||||
|
|
||||||
# Remove newly created pot files
|
# Remove newly created pot files
|
||||||
rm -f ${DIRECTORY}/source/locale/*.pot
|
rm -f ${DIRECTORY}/source/locale/*.pot
|
||||||
when: translations.stat.exists == True
|
when: translations.stat.exists
|
||||||
|
|
||||||
- name: Run releasenotes sphinx build
|
- name: Run releasenotes sphinx build
|
||||||
shell:
|
shell:
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
url: https://storage.googleapis.com/minikube/releases/{{ minikube_version }}/minikube-linux-amd64
|
url: https://storage.googleapis.com/minikube/releases/{{ minikube_version }}/minikube-linux-amd64
|
||||||
dest: /tmp/minikube
|
dest: /tmp/minikube
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when: stat_result.stat.exists == False
|
when: not stat_result.stat.exists
|
||||||
|
|
||||||
- name: Run install-docker role
|
- name: Run install-docker role
|
||||||
include_role:
|
include_role:
|
||||||
|
5
tox.ini
5
tox.ini
@ -44,11 +44,10 @@ commands =
|
|||||||
# [ANSIBLE0012] Commands should not change things if nothing needs doing
|
# [ANSIBLE0012] Commands should not change things if nothing needs doing
|
||||||
# [204] Lines should be no longer than 160 chars
|
# [204] Lines should be no longer than 160 chars
|
||||||
# [206] Variables should have spaces before and after: {{ var_name }}
|
# [206] Variables should have spaces before and after: {{ var_name }}
|
||||||
# [601] Don't compare to literal True/False
|
|
||||||
bash -c "find playbooks -type f -regex '.*.ya?ml' -print0 | \
|
bash -c "find playbooks -type f -regex '.*.ya?ml' -print0 | \
|
||||||
xargs -t -n1 -0 ansible-lint -xANSIBLE0012,204,206,601"
|
xargs -t -n1 -0 ansible-lint -xANSIBLE0012,204,206"
|
||||||
bash -c 'find roles -maxdepth 1 -mindepth 1 -type d -printf "%p/\n" | \
|
bash -c 'find roles -maxdepth 1 -mindepth 1 -type d -printf "%p/\n" | \
|
||||||
xargs -t -n1 ansible-lint -xANSIBLE0012,204,206,601'
|
xargs -t -n1 ansible-lint -xANSIBLE0012,204,206'
|
||||||
# Ansible Syntax Check
|
# Ansible Syntax Check
|
||||||
bash -c "find playbooks -type f -regex '.*.ya?ml' -exec \
|
bash -c "find playbooks -type f -regex '.*.ya?ml' -exec \
|
||||||
ansible-playbook --syntax-check -i {toxinidir}/tests/inventory \{\} + > /dev/null"
|
ansible-playbook --syntax-check -i {toxinidir}/tests/inventory \{\} + > /dev/null"
|
||||||
|
Loading…
Reference in New Issue
Block a user