diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/src/cli-rpc-ops.c | 4 |
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"); |