| commit | 5a95f51e514338df556005ce51b0a763a84b07c3 | [log] [tgz] |
|---|---|---|
| author | Matthew Wilson <mwilson@google.com> | Mon Aug 21 15:06:53 2023 -0700 |
| committer | Matthew Wilson <mwilson@google.com> | Mon Aug 21 16:59:02 2023 -0700 |
| tree | f89f843f3cc7a349fcc933e4b22e96ef1a59c834 | |
| parent | e32d523c8f894993872a1245f2d5c81e97e7975e [diff] |
Run ansible-lint from config's parent dir ansible-lint doesn't find all of our configs unless it's run in just this way. Change-Id: I98c66fe4f4fb4a8d95b8ee03f8d06dcb019f30ae
diff --git a/preupload-hooks/ansible-checks.sh b/preupload-hooks/ansible-checks.sh index 4b1a1b6..69d650b 100755 --- a/preupload-hooks/ansible-checks.sh +++ b/preupload-hooks/ansible-checks.sh
@@ -25,4 +25,5 @@ fi # Run ansible checks. Just lint for now -ansible-lint $ANSIBLE_PATH +cd $(dirname ${ANSIBLE_PATH}) +ansible-lint $(basename ${ANSIBLE_PATH})