From d2aa13fd7840361aa22128fbc9583ea1e264d8f3 Mon Sep 17 00:00:00 2001 From: Rakesh Date: Fri, 8 Apr 2022 11:55:55 +0200 Subject: [PATCH] Display proper gateway length in health check result (#6226) The output always returns 1 since all gateways are present in one line but the actual output should be the number of gateways present in that line Co-authored-by: Rakesh Venkatesh --- systemvm/debian/root/health_checks/gateways_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemvm/debian/root/health_checks/gateways_check.py b/systemvm/debian/root/health_checks/gateways_check.py index 29ce884ca99..e2c3f3f356d 100644 --- a/systemvm/debian/root/health_checks/gateways_check.py +++ b/systemvm/debian/root/health_checks/gateways_check.py @@ -44,7 +44,7 @@ def main(): unreachableGateWays.append(gw) if len(unreachableGateWays) == 0: - print "All " + str(len(gws)) + " gateways are reachable via ping" + print "All " + str(len(gwsList)) + " gateways are reachable via ping" exit(0) else: print "Unreachable gateways found-"