Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
Run ansible-lint from config's parent dir
Browse files Browse the repository at this point in the history
ansible-lint doesn't find all of our configs unless it's run in just
this way.

Change-Id: I98c66fe4f4fb4a8d95b8ee03f8d06dcb019f30ae
GitOrigin-RevId: 5a95f51e514338df556005ce51b0a763a84b07c3
  • Loading branch information
unrepentantgeek authored and sleffler committed Sep 6, 2023
1 parent 9227e3d commit fde8026
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion preupload-hooks/ansible-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ if ! command -v ansible-lint >/dev/null; then
fi

# Run ansible checks. Just lint for now
ansible-lint $ANSIBLE_PATH
cd $(dirname ${ANSIBLE_PATH})
ansible-lint $(basename ${ANSIBLE_PATH})

0 comments on commit fde8026

Please sign in to comment.