From 31ed53e48a2066ba344c257856384ad105803281 Mon Sep 17 00:00:00 2001 From: Sachin Pandit Date: Fri, 13 Dec 2013 05:52:24 +0530 Subject: glusterd/snapshot : Fix for CG ID and Name not getting displayed. CG ID was not getting initiated during snapshot create, hence there was problem in listing the CG ID and CG Name. Note: Manually adding this patch again as this patch got missed in git reset option done on remote development branch Change-Id: I81951b42292912c98bab5964fc732b630ff66d14 BUG: 1040435 Signed-off-by: Sachin Pandit Signed-off-by: Rajesh Joseph --- cli/src/cli-rpc-ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli') diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 1a90e192c..31fd616ff 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -7671,7 +7671,7 @@ list_snap_of_volume (dict_t *dict_n, char *prefix_str) { continue; } ret = snprintf (buffer, sizeof(buffer), - "%s.snap-%ld.cgname", prefix_str, i); + "%s.snap-%ld.cg-name", prefix_str, i); if (ret < 0) { /* Negative value is an error */ goto out; } @@ -7744,7 +7744,7 @@ list_snap_of_cg (dict_t *dict) { goto out; } - ret = dict_get_str (dict, "snaplist.cg-0.cgname", &get_buffer); + ret = dict_get_str (dict, "snaplist.cg-0.cg-name", &get_buffer); if (ret) { /* if cg_name is not present then exit, it is not necessary * to check other details if cg_name is not present -- cgit