Disable false ansiblelint warnings 84/69284/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sat, 7 Dec 2019 13:15:02 +0000 (14:15 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sat, 7 Dec 2019 13:25:57 +0000 (14:25 +0100)
git commit has to be executed via shell module [1].
it also fixes Functest branch

[1] https://github.com/ansible/ansible/issues/50334

Change-Id: Ie4595f7bc2b54545b2f824f5ac3fb1d20340f13c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit abe7e05d27f7801b902821a85186dca0c9e563ae)

tox.ini

diff --git a/tox.ini b/tox.ini
index 9aa8415..5e3a907 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -4,7 +4,7 @@ envlist = pep8,pylint,yamllint,ansiblelint,bashate,py27,py36,bandit,perm
 [testenv]
 usedevelop = True
 deps =
-  -chttps://git.opnfv.org/functest/plain/upper-constraints.txt
+  -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=stable/hunter
   -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/rocky/upper-constraints.txt}
   -r{toxinidir}/requirements.txt
   -r{toxinidir}/test-requirements.txt
@@ -35,7 +35,7 @@ commands =
 
 [testenv:ansiblelint]
 basepython = python2.7
-commands = ansible-lint ansible/site.yml
+commands = ansible-lint -x303 ansible/site.yml
 
 [testenv:bandit]
 basepython = python2.7