summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSahina Bose <sabose@redhat.com>2014-06-06 12:59:02 +0530
committerSahina Bose <sabose@redhat.com>2014-06-06 02:14:34 -0700
commitab5dd8ea647fc1aa80f7ba6b43520979eb1827cc (patch)
treee94227ef00995716b138590c1638ee1f00f346c5
parentaaa4484f7ae6d45d8eee240e5769379b2c9d8ea7 (diff)
plugins: Handle geo-rep plugin output for no session info
When there are no active geo-replication sessions, the plugin is changed to return output accordingly Change-Id: Icbc4ec061cc7a1e948914e284531531b00e9ec4b Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1104014 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/8000 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
-rwxr-xr-xplugins/check_volume_status.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/check_volume_status.py b/plugins/check_volume_status.py
index 77168f3..821fbaf 100755
--- a/plugins/check_volume_status.py
+++ b/plugins/check_volume_status.py
@@ -135,6 +135,8 @@ def getVolumeGeoRepStatus(args):
exitstatus = utils.PluginStatusCode.WARNING
if exitstatus != utils.PluginStatusCode.OK:
message += "\n" + detail
+ if len(volume[args.volume]['slaves']) == 0:
+ message += "No active sessions found"
return exitstatus, message