cloudmonkey: for account param use listAccounts Signed-off-by: Rohit Yadav <rohit.ya...@shapeblue.com>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/commit/85343084 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/85343084 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/85343084 Branch: refs/heads/5.3 Commit: 85343084ebd18c7e7f5e97e199b15835fba7c964 Parents: 18feb80 Author: Rohit Yadav <rohit.ya...@shapeblue.com> Authored: Fri Nov 14 03:50:37 2014 +0530 Committer: Rohit Yadav <rohit.ya...@shapeblue.com> Committed: Tue Nov 18 19:28:36 2014 +0530 ---------------------------------------------------------------------- cloudmonkey/cloudmonkey.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/85343084/cloudmonkey/cloudmonkey.py ---------------------------------------------------------------------- diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py index 607687b..3e279b9 100644 --- a/cloudmonkey/cloudmonkey.py +++ b/cloudmonkey/cloudmonkey.py @@ -492,7 +492,10 @@ class CloudMonkeyShell(cmd.Cmd, object): if len(apis) > 0: api = apis[0] else: - return + if param == "account": + api = "listAccounts" + else: + return uuids = [] cache_burst_ts = int(time.time()) - 900 logger.debug("Trying paramcompletion using API: %s" % api)