Return-Path: X-Original-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 02BB2DC50 for ; Mon, 5 Nov 2012 16:29:22 +0000 (UTC) Received: (qmail 62092 invoked by uid 500); 5 Nov 2012 16:29:21 -0000 Delivered-To: apmail-incubator-cloudstack-commits-archive@incubator.apache.org Received: (qmail 61652 invoked by uid 500); 5 Nov 2012 16:29:21 -0000 Mailing-List: contact cloudstack-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-commits@incubator.apache.org Received: (qmail 61286 invoked by uid 99); 5 Nov 2012 16:29:20 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2012 16:29:20 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id E78DD44080; Mon, 5 Nov 2012 16:29:19 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bhaisaab@apache.org To: cloudstack-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [4/7] git commit: cli: don't get the required list as params Message-Id: <20121105162919.E78DD44080@tyr.zones.apache.org> Date: Mon, 5 Nov 2012 16:29:19 +0000 (UTC) cli: don't get the required list as params Signed-off-by: Rohit Yadav Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/c444bb38 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/c444bb38 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/c444bb38 Branch: refs/heads/master Commit: c444bb3811a146107fd1c47dcf190bfad5fac589 Parents: 98d341d Author: Rohit Yadav Authored: Mon Nov 5 21:57:11 2012 +0530 Committer: Rohit Yadav Committed: Mon Nov 5 21:59:03 2012 +0530 ---------------------------------------------------------------------- tools/cli/cloudmonkey/cloudmonkey.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/c444bb38/tools/cli/cloudmonkey/cloudmonkey.py ---------------------------------------------------------------------- diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py index ebb03e7..05ea886 100644 --- a/tools/cli/cloudmonkey/cloudmonkey.py +++ b/tools/cli/cloudmonkey/cloudmonkey.py @@ -270,7 +270,8 @@ class CloudStackShell(cmd.Cmd): doc = api_mod.__doc__ except AttributeError, e: self.print_shell("Error: API attribute %s not found!" % e) - params = filter(lambda x: '__' not in x, dir(api_cmd())) + params = filter(lambda x: '__' not in x and 'required' not in x, + dir(api_cmd())) api_name_lower = api_name.replace(verb, '').lower() self.cache_verbs[verb][api_name_lower] = [api_name, params, doc]