summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulesWang <w.jq0722@gmail.com>2012-12-04 10:12:30 +0800
committerVijay Bellur <vbellur@redhat.com>2012-12-03 20:42:09 -0800
commit4675796361f19a9f1f897465587737391d94a235 (patch)
treecae9dc63436ed6f5e7545b1fed6cfff7acdb2763
parentfa1607ea596802d3d3177d775eeecb0f0e5d496f (diff)
cli: fix incorrect xml output of brick tag.
Incorrect output: <brick> <brick> </brick> </brick> Expected output: <brick></brick> <brick></brick> Change-Id: I40c30feda4e6f3f1ec5da4122f8965b61c511ae6 BUG: 880993 Signed-off-by: JulesWang <w.jq0722@gmail.com> Reviewed-on: http://review.gluster.org/4262 Reviewed-by: Kaushal M <kaushal@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: Kaushal M <kaushal@redhat.com>
-rw-r--r--cli/src/cli-xml-output.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c
index 938f8dce18a..ffe32caccdd 100644
--- a/cli/src/cli-xml-output.c
+++ b/cli/src/cli-xml-output.c
@@ -1736,8 +1736,6 @@ cli_xml_output_vol_top (dict_t *dict, int op_ret, int op_errno,
case GF_CLI_TOP_WRITE:
case GF_CLI_TOP_OPENDIR:
case GF_CLI_TOP_READDIR:
- if (!members)
- continue;
break;
@@ -1763,9 +1761,6 @@ cli_xml_output_vol_top (dict_t *dict, int op_ret, int op_errno,
"%f", time_taken);
}
- if (!members)
- continue;
-
break;
default: