summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2012-04-23 10:55:22 +0530
committerAnand Avati <avati@redhat.com>2012-04-23 18:47:52 -0700
commitcbd13c0c1e2abbd04aff616d9767fc7b95365707 (patch)
treea3dddbfb76c88591395f5a9ae66ad6b8fadc0ca2 /cli/src
parent853452410adc284faba03c001f0b25188deeeea8 (diff)
cli: fix the output of 'gluster volume list'
make it script friendly Change-Id: I5b196cf5cf1744090a1360eef95c9a842d7be996 Signed-off-by: Amar Tumballi <amarts@redhat.com> BUG: 815190 Reviewed-on: http://review.gluster.com/3207 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaushal M <kaushal@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/cli-rpc-ops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index 61c117162e2..790330240fd 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -6059,16 +6059,13 @@ gf_cli3_1_list_volume_cbk (struct rpc_req *req, struct iovec *iov,
cli_out ("No volumes present in cluster");
goto out;
}
- cli_out ("%d %s present in cluster", vol_count,
- ((vol_count == 1) ? "volume" : "volumes"));
-
for (i = 0; i < vol_count; i++) {
memset (key, 0, sizeof (key));
snprintf (key, sizeof (key), "volume%d", i);
ret = dict_get_str (dict, key, &volname);
if (ret)
goto out;
- cli_out ("\t%d. %s", i+1, volname);
+ cli_out ("%s", volname);
}
}