Fail to set the value in multiple lines 47/61147/1
authorJulien <zhang.jun3g@zte.com.cn>
Tue, 21 Aug 2018 06:24:57 +0000 (14:24 +0800)
committerJulien <zhang.jun3g@zte.com.cn>
Tue, 21 Aug 2018 06:24:57 +0000 (14:24 +0800)
refer to the log of Jenkins:
https://build.opnfv.org/ci/view/pharos/job/
validate-pdf-jinja2-templates-master/326/console

/home/jenkins-ci/opnfv/slave_root/workspace/
validate-pdf-jinja2-templates-master/config/utils/check-jinja2.sh:
line 54: -i ./config/installers/apex: No such file or directory

[GENERATE] [OK]
[YAMLLINT] [OK] yamllint -s ./config/installers/apex/pod_config.yaml

Change-Id: I13c220e7fba5355124ae2b41e7399140c5d92523
Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
config/utils/check-jinja2.sh

index d42a2cd..1fcdb9a 100755 (executable)
@@ -51,8 +51,8 @@ while IFS= read -r lab_config; do
             continue
         fi
         while IFS= read -r jinja_template; do
-            pdf_gen_cmd="${GEN_CFG} -y ${lab_config} -j ${jinja_template}" \
-                        "-i $(dirname "${jinja_template}")"
+            pdf_gen_cmd="${GEN_CFG} -y ${lab_config} -j ${jinja_template} \
+                        -i $(dirname "${jinja_template}")"
             if ${pdf_gen_cmd} > "${TMPF}"; then
                 ((pdf_inst_pass+=1))
                 echo "[GENERATE] [OK] ${pdf_gen_cmd}"