From: Alexandru Avadanii Date: Mon, 22 Jan 2018 16:50:10 +0000 (+0000) Subject: Merge "[PDF] check-jinja: Filter-out incompatible PDF/IA" X-Git-Tag: 6.0.0~21 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=52723a26b52a0bd264195996715d8f52ee6c1051;p=pharos.git Merge "[PDF] check-jinja: Filter-out incompatible PDF/IA" --- 52723a26b52a0bd264195996715d8f52ee6c1051 diff --cc config/utils/check-jinja2.sh index 960f288b,1001b156..59a6506b --- a/config/utils/check-jinja2.sh +++ b/config/utils/check-jinja2.sh @@@ -32,9 -25,11 +32,12 @@@ for adapter in 'PDF Verify Matrix' ${IN done # Iterate all PDFs, check with each installer adapter, log results +# shellcheck disable=SC2086 while IFS= read -r lab_config; do SUMMARY+="\n${lab_config#labs/};" + lab_nodes=$(grep -ce 'node:' "${lab_config}") + lab_tmacs=$(grep -ce 'mac_address:' "${lab_config}") + ((lab_amacs=lab_tmacs/lab_nodes)); ((lab_nodes-=1)) echo "###################### ${lab_config} ######################" for adapter in ${INSTALLER_ADAPTERS}; do pdf_inst=0