From 1fef18092fb98c6846ab987a5eb855617320a0c7 Mon Sep 17 00:00:00 2001
From: garciadeblas <gerardo.garciadeblas@telefonica.com>
Date: Fri, 3 Dec 2021 11:37:40 +0100
Subject: [PATCH] Fix bug 1818 to report correctly osm_unhealthy

Change-Id: I5ca8b030f9124a35325876a5e88752483f668f50
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
---
 installers/full_install_osm.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh
index d22bc1a0..3447de1f 100755
--- a/installers/full_install_osm.sh
+++ b/installers/full_install_osm.sh
@@ -722,9 +722,9 @@ function install_osm() {
 
     echo -e "Checking OSM health state..."
     $OSM_DEVOPS/installers/osm_health.sh -s ${OSM_STACK_NAME} -k || \
-    echo -e "OSM is not healthy, but will probably converge to a healthy state soon." && \
+    (echo -e "OSM is not healthy, but will probably converge to a healthy state soon." && \
     echo -e "Check OSM status with: kubectl -n ${OSM_STACK_NAME} get all" && \
-    track healthchecks osm_unhealthy didnotconverge
+    track healthchecks osm_unhealthy didnotconverge)
     track healthchecks after_healthcheck_ok
 
     add_local_k8scluster
-- 
GitLab