diff options
author | Kanagaraj M <kmayilsa@redhat.com> | 2014-04-30 19:52:24 +0530 |
---|---|---|
committer | Sahina Bose <sabose@redhat.com> | 2014-05-02 05:05:18 -0700 |
commit | ccec0742af257e13effafa30a1184541c3cf5b65 (patch) | |
tree | 3ab1ed76965931ffdc38925dae8be82a3cadb533 /plugins | |
parent | 566706fb10e6c626556fb5bab45d74c20ba922c1 (diff) |
vol-status: remove volume-info from status
When Volume is in OK state, volume info
will not be sent along with status.
Change-Id: I3b3644c45676c35f7b7dec048531a40b3de2fb8d
Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>
Reviewed-on: http://review.gluster.org/7612
Reviewed-by: Ramesh N <rnachimu@redhat.com>
Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/check_volume_status.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/check_volume_status.py b/plugins/check_volume_status.py index 70bed2f..f2c0f39 100755 --- a/plugins/check_volume_status.py +++ b/plugins/check_volume_status.py @@ -17,7 +17,6 @@ # import argparse -import json from glusternagios import utils from glusternagios import glustercli @@ -34,11 +33,8 @@ def getVolumeStatus(args): return exitstatus, message elif volumes[args.volume]["volumeStatus"] == (glustercli. VolumeStatus.ONLINE): - ret_volumes = {} - ret_volumes[args.volume] = volumes.get(args.volume) - ret_volumes[args.volume]['options'] = {} exitstatus = utils.PluginStatusCode.OK - message = ("OK: Volume is up \n%s" % json.dumps(ret_volumes)) + message = "OK: Volume is up" elif volumes[args.volume]["volumeStatus"] == (glustercli. VolumeStatus.OFFLINE): exitstatus = utils.PluginStatusCode.CRITICAL |