From ab5dd8ea647fc1aa80f7ba6b43520979eb1827cc Mon Sep 17 00:00:00 2001 From: Sahina Bose Date: Fri, 6 Jun 2014 12:59:02 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/8000 Reviewed-by: Kanagaraj M --- plugins/check_volume_status.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit