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 <rakeshv@apache.org>
This commit is contained in:
Rakesh 2022-04-08 11:55:55 +02:00 committed by GitHub
parent 2b075ed39e
commit d2aa13fd78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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-"