summaryrefslogtreecommitdiffstats
path: root/plugins/check_vol_server.py
diff options
context:
space:
mode:
authorKanagaraj M <kmayilsa@redhat.com>2014-04-17 07:00:52 +0530
committerBala.FA <barumuga@redhat.com>2014-04-29 10:21:37 +0530
commit82411c25da147d14d8fb93429f59d8fb5b838040 (patch)
tree5c51c9e546a79a07f7bbc0e4aa719b1bb359b19f /plugins/check_vol_server.py
parent5307bc90561701c28ffcf26929e67c576f1c5b31 (diff)
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 <kmayilsa@redhat.com>
Diffstat (limited to 'plugins/check_vol_server.py')
-rwxr-xr-xplugins/check_vol_server.py2
1 files changed, 1 insertions, 1 deletions
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: