X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-stx%2Frecipes-support%2Fpuppet%2Ffiles%2Fstx-puppet%2F0006-puppet-manifest-apply-do-not-treat-warnings-as-block.patch;fp=meta-stx%2Frecipes-support%2Fpuppet%2Ffiles%2Fstx-puppet%2F0006-puppet-manifest-apply-do-not-treat-warnings-as-block.patch;h=9169f66ccd8c397002a112fc83870bfa955c7327;hb=57fdea704bd62af847872c40508f00aa1d7cac60;hp=0000000000000000000000000000000000000000;hpb=f23f21bccfb750b9e30141fd9676515215ffbc4e;p=pti%2Frtp.git diff --git a/meta-stx/recipes-support/puppet/files/stx-puppet/0006-puppet-manifest-apply-do-not-treat-warnings-as-block.patch b/meta-stx/recipes-support/puppet/files/stx-puppet/0006-puppet-manifest-apply-do-not-treat-warnings-as-block.patch new file mode 100644 index 0000000..9169f66 --- /dev/null +++ b/meta-stx/recipes-support/puppet/files/stx-puppet/0006-puppet-manifest-apply-do-not-treat-warnings-as-block.patch @@ -0,0 +1,31 @@ +From f027236dd57ca3ba20b6f827026a639c6fb373d8 Mon Sep 17 00:00:00 2001 +From: Jackie Huang +Date: Fri, 20 Mar 2020 13:16:35 +0800 +Subject: [PATCH] puppet-manifest-apply: do not treat warnings as blocker issue + +Signed-off-by: Jackie Huang +--- + puppet-manifests/src/bin/puppet-manifest-apply.sh | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/puppet-manifests/src/bin/puppet-manifest-apply.sh b/puppet-manifests/src/bin/puppet-manifest-apply.sh +index 4d36059..18eec2c 100755 +--- a/puppet-manifests/src/bin/puppet-manifest-apply.sh ++++ b/puppet-manifests/src/bin/puppet-manifest-apply.sh +@@ -105,10 +105,10 @@ if [ $? -ne 0 ]; then + echo "See ${LOGFILE} for details" + exit 1 + else +- grep -qE '^(.......)?Warning|^....-..-..T..:..:..([.]...)?(.......)?.Warning|^(.......)?Error|^....-..-..T..:..:..([.]...)?(.......)?.Error' ${LOGFILE} ++ grep -qE '^(.......)?Error|^....-..-..T..:..:..([.]...)?(.......)?.Error' ${LOGFILE} + if [ $? -eq 0 ]; then +- echo "[WARNING]" +- echo "Warnings found. See ${LOGFILE} for details" ++ echo "[ERROR]" ++ echo "Errors found. See ${LOGFILE} for details" + exit 1 + fi + echo "[DONE]" +-- +2.7.4 +