summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2012-12-19 11:38:49 +0530
committerVijay Bellur <vbellur@redhat.com>2012-12-19 00:49:36 -0800
commite8c75fd92974285be6aa9df542a1a8d7f6309160 (patch)
tree0c3970af6bbe33495f5181a82dcf0692165c1a35 /cli/src
parent09e4d0861c8df392dc19dc6c9656dd33571f260d (diff)
cli: Making the op-ret check for gluster peer probe --xml more robust.v3.4.0qa6
Change-Id: I75ca74a9e962ea47abbb2970e37dd182429b734b BUG: 879490 Signed-off-by: Avra Sengupta <asengupt@redhat.com> Reviewed-on: http://review.gluster.org/4335 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/cli-rpc-ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index dcbe074cbf6..c0909cd0dcf 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -180,9 +180,9 @@ gf_cli_probe_cbk (struct rpc_req *req, struct iovec *iov,
if (global_state->mode & GLUSTER_MODE_XML) {
ret = cli_xml_output_str (NULL,
- (rsp.op_ret == -1)? NULL : msg,
+ (rsp.op_ret)? NULL : msg,
rsp.op_ret, rsp.op_errno,
- (rsp.op_ret == -1)? msg : NULL);
+ (rsp.op_ret)? msg : NULL);
if (ret)
gf_log ("cli", GF_LOG_ERROR,
"Error outputting to xml");