summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSahina Bose <sabose@redhat.com>2014-06-12 19:37:29 +0530
committerSahina Bose <sabose@redhat.com>2014-06-12 22:16:37 -0700
commit20b71f551651491e7001ee4b89c340196dc6c204 (patch)
tree92eb700499b51c258a0b4c1f3a82e6c72905a92e
parent94ce627a6a2eb58d172d8af51b7eced6bae4c18f (diff)
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 <sabose@redhat.com> Reviewed-on: http://review.gluster.org/8051 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
-rwxr-xr-xglusternagios/glustercli.py4
1 files 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