From e5a1c0d3fe85bb7cbbc92e196599a5942cccd499 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Sun, 21 May 2017 15:27:37 +0200 Subject: [PATCH] TT#16680 Add info output for successful yml check/validation At the moment we provide no output for the end users, which confuses them for the checks with and without the validation. We should clearly report to users what has been checked. Change-Id: Icc61744637345a1dc51fe8d8dd9bd3fd7f86824d --- scripts/check | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/check b/scripts/check index 2bf8e5d7..aa45cb60 100755 --- a/scripts/check +++ b/scripts/check @@ -82,7 +82,9 @@ validate_config() { fi done - if [ "$rc" != "0" ] ; then + if [ "$rc" = "0" ] ; then + log_info "yml configs were validated successfully" + else if [ -n "${NO_VALIDATE:-}" ] ; then log_info "DANGEROUS ZONE: invalid configs detected, continue anyway due to option '--no-validate'" else @@ -151,6 +153,7 @@ check_configs_conflicts check_shared_storage || exit $? +log_info "configs were checked successfully" exit 0 ## END OF FILE #################################################################