You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2013/03/20 08:46:36 UTC
[2/2] git commit: refs/heads/master - cli: Run onecmd if any arg is
passed
Updated Branches:
refs/heads/master d7f9aa637 -> 0d62549d6
cli: Run onecmd if any arg is passed
Signed-off-by: Rohit Yadav <bh...@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/0d62549d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/0d62549d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/0d62549d
Branch: refs/heads/master
Commit: 0d62549d61acf9534a7b7e7780241a217e1de20f
Parents: 4ad5d1a
Author: Rohit Yadav <bh...@apache.org>
Authored: Wed Mar 20 13:14:09 2013 +0530
Committer: Rohit Yadav <bh...@apache.org>
Committed: Wed Mar 20 13:14:09 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/0d62549d/tools/cli/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py
index a95ab9e..94006c9 100644
--- a/tools/cli/cloudmonkey/cloudmonkey.py
+++ b/tools/cli/cloudmonkey/cloudmonkey.py
@@ -490,7 +490,7 @@ def main():
sys.exit(0)
shell = CloudMonkeyShell(sys.argv[0], options.cfile)
- if len(args) > 1:
+ if len(args) > 0:
shell.onecmd(' '.join(args))
else:
shell.cmdloop()