diff options
author | ndarshan <dnarayan@redhat.com> | 2014-05-19 12:32:49 +0530 |
---|---|---|
committer | Sahina Bose <sabose@redhat.com> | 2014-05-20 03:26:01 -0700 |
commit | b8b7222a1451655aecd12779f8d6393e59bd6ac0 (patch) | |
tree | 0fd7ea199a27f7b918337857f5a2b020588da6c7 | |
parent | 8cbf413edaa6652abd68a8bf966eaac5f58466fb (diff) |
gluster-nagios-addons: Fix for improper display of error message.
Fixed the issue with error message which was displayed
when exception was raised.
Change-Id: I73400111c8031b269edc32c2e9d387369aeea445
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1094765
Signed-off-by: ndarshan <dnarayan@redhat.com>
Reviewed-on: http://review.gluster.org/7793
Reviewed-by: Bala FA <barumuga@redhat.com>
Reviewed-by: Sahina Bose <sabose@redhat.com>
-rwxr-xr-x | plugins/sadf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sadf.py b/plugins/sadf.py index c7caee8..597b14c 100755 --- a/plugins/sadf.py +++ b/plugins/sadf.py @@ -65,12 +65,12 @@ def sadfExecCmd(sadfCmd): raise SadfCmdExecFailedException(err=[str(e)]) if rc != 0: - raise SadfCmdExecFailedException(rc, out, err) + raise SadfCmdExecFailedException(rc, [out], [err]) try: return etree.fromstring(out) except _etreeExceptions: - raise SadfXmlErrorException(err=out) + raise SadfXmlErrorException(err=[out]) def utcnow(): |