From 7c6cf654700fb05502591e84b2000bb5230283e2 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Fri, 19 Aug 2011 13:51:14 +0200 Subject: cli: remove bogus assertion Since 86c818a9 (cli: taking my revenge ...) we cannot assert an exact match for the op/subop keywords in the followup parser functions. That is, # gluster vol stat foo is a valid invocation. Change-Id: I3f7f410f64f440744141f458886e4bba8ceeca17 BUG: 3439 Reviewed-on: http://review.gluster.com/268 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- cli/src/cli-cmd-parser.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'cli') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 9f35cc47e5b..af78a7c5b1d 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -1657,11 +1657,6 @@ cli_cmd_volume_status_parse (const char **words, int wordcount, GF_ASSERT (words); GF_ASSERT (options); - - GF_ASSERT ((strncmp(words[0], "volume", 6) == 0)); - GF_ASSERT ((strncmp(words[1], "status", 5) == 0)); - - dict = dict_new (); if (!dict) goto out; -- cgit