From: Alexandru Avadanii Date: Fri, 12 Jan 2018 21:27:26 +0000 (+0100) Subject: [PDF] check-jinja: Disable check against template X-Git-Tag: 6.0.0~28^2~3 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=90e2b5ea413edb1f12d0f6fbcc58e7c68b2aaa57;p=pharos.git [PDF] check-jinja: Disable check against template config/pdf/pod1*yaml files are not valid PDFs, but only templates. Trying to expand said files against installer adapters would lead to funky results, since most fields are expressed as '{val1|val2}' in the template files. Change-Id: Ieec4d596d0b5246aa506239183a31463951403e7 Signed-off-by: Alexandru Avadanii --- diff --git a/config/utils/check-jinja2.sh b/config/utils/check-jinja2.sh index 8a966e52..f23d389c 100755 --- a/config/utils/check-jinja2.sh +++ b/config/utils/check-jinja2.sh @@ -52,7 +52,7 @@ while IFS= read -r lab_config; do done < <(find "${adapter}" -name '*.j2') SUMMARY+="${pdf_yaml_pass}/${pdf_inst_pass}/${pdf_inst};" done -done < <(find 'config' 'labs' -name 'pod*.yaml') +done < <(find 'labs' -name 'pod*.yaml') rm -f "${TMPF}" echo -e '\n\nNOTE: tuple fmt: (valid YAML output/sucessful parse/templates).\n'