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 532BEFC54 for ; Thu, 21 Mar 2013 05:22:04 +0000 (UTC) Received: (qmail 82164 invoked by uid 500); 21 Mar 2013 05:21:53 -0000 Delivered-To: apmail-incubator-cloudstack-commits-archive@incubator.apache.org Received: (qmail 81865 invoked by uid 500); 21 Mar 2013 05:21:53 -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 79788 invoked by uid 99); 21 Mar 2013 05:21:51 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Mar 2013 05:21:51 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id C479B3EC1D; Thu, 21 Mar 2013 05:21:50 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: koushik@apache.org To: cloudstack-commits@incubator.apache.org Date: Thu, 21 Mar 2013 05:22:13 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [26/50] [abbrv] git commit: refs/heads/cisco-vnmc-api-integration - cli: Check args from optparser and not sys.argv cli: Check args from optparser and not sys.argv 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/0b7a4e04 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/0b7a4e04 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/0b7a4e04 Branch: refs/heads/cisco-vnmc-api-integration Commit: 0b7a4e04aaf2228a41bfb39d2699184220e1cc7d Parents: 217ebf2 Author: Rohit Yadav Authored: Tue Mar 19 18:04:31 2013 +0530 Committer: Rohit Yadav Committed: Tue Mar 19 18:04:52 2013 +0530 ---------------------------------------------------------------------- tools/cli/cloudmonkey/cloudmonkey.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/0b7a4e04/tools/cli/cloudmonkey/cloudmonkey.py ---------------------------------------------------------------------- diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py index f750c3a..e94d530 100644 --- a/tools/cli/cloudmonkey/cloudmonkey.py +++ b/tools/cli/cloudmonkey/cloudmonkey.py @@ -489,7 +489,7 @@ def main(): print __description__, "(%s)" % __projecturl__ shell = CloudMonkeyShell(sys.argv[0], options.cfile) - if len(sys.argv) > 1: + if len(args) > 1: shell.onecmd(' '.join(args)) else: shell.cmdloop()