From 879a7f34a9275dfc2916d32cbcac451f810936a3 Mon Sep 17 00:00:00 2001 From: Rakesh Venkatesh Date: Thu, 7 Apr 2022 11:07:52 +0200 Subject: [PATCH] Display proper gateway length in health check result 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 --- 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 29ce884ca997..e2c3f3f356d3 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-"