From 6d68a2e26db486c62c1ee1ed197a4c4d3e93374b Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Mon, 26 Dec 2022 21:52:05 +0000 Subject: [PATCH] Update tox.ini to work with tox 4 This change will allow this repo to pass zuul now that this has merged: https://review.opendev.org/c/zuul/zuul-jobs/+/866943 Tox 4 deprecated whitelist_externals. Replace whitelist_externals with allowlist_externals Partial-Bug: #2000399 Signed-off-by: Al Bailey Change-Id: I879b2d49fca6437dbe33802c85d20394d6bdc60e --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 235f03cbe..34b47e945 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ deps = -r{toxinidir}/requirements.txt [testenv:linters] basepython = python3 -whitelist_externals = bash +allowlist_externals = bash commands = {[testenv:ansible-lint]commands} bash -c "find {toxinidir} \ @@ -34,7 +34,7 @@ commands = [testenv:ansible-lint] basepython = python3 -whitelist_externals = bash +allowlist_externals = bash # ansible-lint error checks are suppressed/skipped through the .ansible-lint file commands = bash -c "ls playbookconfig/src/playbooks/*.yml | xargs --no-run-if-empty ansible-lint"