From 01dc9e1039e4d36f53fa786beeae3d48f5f2f52d Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 23 Sep 2020 22:11:39 +0200 Subject: [PATCH] Fix ansible-lint The ansible-lint testing fails silently with: 2020-09-23 20:08:26.289902 | ubuntu-bionic | [2425] /home/zuul/src/opendev.org/openstack/project-config$ /bin/bash -c 'find roles -maxdepth 1 -mindepth 1 -type d -printf "%%p/\n" | xargs -t -n1 ansible-lint' 2020-09-23 20:08:26.294180 | ubuntu-bionic | ansible-lint %p/ 2020-09-23 20:08:26.908714 | ubuntu-bionic | WARNING Couldn't open %p - No such file or directory [try:0] 2020-09-23 20:08:27.910102 | ubuntu-bionic | WARNING Couldn't open %p - No such file or directory [try:1] 2020-09-23 20:08:28.911658 | ubuntu-bionic | WARNING Couldn't open %p - No such file or directory [try:2] Fix invocation. Change-Id: I5d701506c82701970f818520672c2d4ff1885629 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 610c3f1285..ab4c0f28f3 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,7 @@ commands = # Ansible lint bash -c "find playbooks -type f -regex '.*.ya?ml' -print0 | \ xargs -t -n1 -0 ansible-lint" - 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' # Ansible Syntax Check bash -c "find playbooks -type f -regex '.*.ya?ml' -exec \