From 82411c25da147d14d8fb93429f59d8fb5b838040 Mon Sep 17 00:00:00 2001 From: Kanagaraj M Date: Thu, 17 Apr 2014 07:00:52 +0530 Subject: vol-status: fix issue when all bricks down Fix the aggregation issue when all bricks in CRITICAL state. Change-Id: I8fba79fe77cb876780d4d00cd2992daee758b580 Signed-off-by: Kanagaraj M --- plugins/check_vol_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/check_vol_server.py b/plugins/check_vol_server.py index 34adf92..f780ba8 100755 --- a/plugins/check_vol_server.py +++ b/plugins/check_vol_server.py @@ -76,7 +76,7 @@ def _getVolumeStatusOutput(args): criticalBricks += 1 if criticalBricks > 0: - if volume['brickCount'] == criticalBricks: + if int(volume['brickCount']) == criticalBricks: status = utils.PluginStatusCode.CRITICAL output = "All the bricks are in CRITICAL state" else: -- cgit