X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpacker-validate.sh;h=61e14313ac6739c6e7e5fc5fa3f0f762bef4820e;hb=refs%2Fheads%2Fv0.48.x;hp=dff5397e3bcfd6a4cde35792ba2b399b498b17d2;hpb=32872573cb431a8479e75d159350b8184bb9d62e;p=releng%2Fglobal-jjb.git diff --git a/shell/packer-validate.sh b/shell/packer-validate.sh index dff5397e..61e14313 100644 --- a/shell/packer-validate.sh +++ b/shell/packer-validate.sh @@ -26,8 +26,9 @@ templates=(templates/*.json) for varfile in "${varfiles[@]}"; do # cloud-env.json is a file containing credentials which is pulled in via - # CLOUDENV variable so skip it here. - if [[ "$varfile" == *"cloud-env.json"* ]]; then + # CLOUDENV variable so skip it here. Also handle the case where a project + # has not vars/*.json file. + if [[ "$varfile" == *"cloud-env.json"* ]] || [[ "$varfile" == 'vars/*.json' ]]; then continue fi