incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: refs/heads/master - cli: Check args from optparser and not sys.argv
Date Tue, 19 Mar 2013 12:35:14 GMT
Updated Branches:
  refs/heads/master 217ebf20a -> 0b7a4e04a


cli: Check args from optparser and not sys.argv

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>


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/master
Commit: 0b7a4e04aaf2228a41bfb39d2699184220e1cc7d
Parents: 217ebf2
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Tue Mar 19 18:04:31 2013 +0530
Committer: Rohit Yadav <bhaisaab@apache.org>
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()


Mime
View raw message