Skip to content

Commit d2aa13f

Browse files
raveningRakesh Venkatesh
andauthored
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>
1 parent 2b075ed commit d2aa13f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

systemvm/debian/root/health_checks/gateways_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def main():
4444
unreachableGateWays.append(gw)
4545

4646
if len(unreachableGateWays) == 0:
47-
print "All " + str(len(gws)) + " gateways are reachable via ping"
47+
print "All " + str(len(gwsList)) + " gateways are reachable via ping"
4848
exit(0)
4949
else:
5050
print "Unreachable gateways found-"

0 commit comments

Comments
 (0)