From 20b71f551651491e7001ee4b89c340196dc6c204 Mon Sep 17 00:00:00 2001 From: Sahina Bose Date: Thu, 12 Jun 2014 19:37:29 +0530 Subject: nagios-common: Geo-rep status fixed check for replicacount An error with comparison of replicacount returned from dict fixed with this patch Change-Id: I554dee99af5abc8cb88c337aa05ae41d3017224a Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1101223 Signed-off-by: Sahina Bose Reviewed-on: http://review.gluster.org/8051 Reviewed-by: Kanagaraj M --- glusternagios/glustercli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glusternagios/glustercli.py b/glusternagios/glustercli.py index d752173..18caa79 100755 --- a/glusternagios/glustercli.py +++ b/glusternagios/glustercli.py @@ -538,9 +538,9 @@ def _parseVolumeGeoRepStatus(volumeName, out): brick, tempstatus)) volumes = volumeInfo(volumeName) - brickCount = volumes[volumeName]["brickCount"] + brickCount = int(volumes[volumeName]["brickCount"]) if "REPLICATE" in volumes[volumeName]["volumeType"]: - replicaCount = volumes[volumeName]["replicaCount"] + replicaCount = int(volumes[volumeName]["replicaCount"]) else: replicaCount = brickCount -- cgit