From 1af963dc753d97efb3cbe3e5179a2148c41c9a7d Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Fri, 11 Mar 2016 14:01:31 +0530 Subject: snapshot/cli: Keep the dict keys uniform snapshot info was using a different dictionary key as compared to other snapshot commands. This was throwing a recurring error log in cli.log Change-Id: I9eb9a4541c10a45ec7673a23c89c85a7dce9f3ec BUG: 1316819 Signed-off-by: Avra Sengupta Reviewed-on: http://review.gluster.org/13677 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Rajesh Joseph --- cli/src/cli-cmd-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 9439724f3df..e37408ddb37 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -4182,7 +4182,7 @@ cli_snap_info_parse (dict_t *dict, const char **words, int wordcount) cmd = GF_SNAP_INFO_TYPE_VOL; out: if (ret == 0) { - ret = dict_set_int32 (dict, "cmd", cmd); + ret = dict_set_int32 (dict, "sub-cmd", cmd); if (ret) { gf_log ("cli", GF_LOG_ERROR, "Could not save " "type of snapshot info"); -- cgit