cloudstack-cloudmonkey.git
2 weeks agoFixes #17: handle errors when unable to connect master
Rohit Yadav [Wed, 9 May 2018 13:41:40 +0000 (19:11 +0530)] 
Fixes #17: handle errors when unable to connect

Signed-off-by: Rohit Yadav <rohit@apache.org>
3 weeks agoapi: fix linting issue and order by filter keys
Rohit Yadav [Fri, 4 May 2018 11:50:12 +0000 (17:20 +0530)] 
api: fix linting issue and order by filter keys

Signed-off-by: Rohit Yadav <rohit@apache.org>
3 weeks agoconfig: allow custom prompt
Rohit Yadav [Fri, 4 May 2018 11:49:48 +0000 (17:19 +0530)] 
config: allow custom prompt

Signed-off-by: Rohit Yadav <rohit@apache.org>
4 weeks agovendor: add missing go-runewidth dependency
Rohit Yadav [Wed, 25 Apr 2018 14:56:44 +0000 (16:56 +0200)] 
vendor: add missing go-runewidth dependency

Signed-off-by: Rohit Yadav <rohit@apache.org>
4 weeks agoapi: wip refactor output code, using output type, response and filter opts
Rohit Yadav [Sun, 22 Apr 2018 15:29:33 +0000 (20:59 +0530)] 
api: wip refactor output code, using output type, response and filter opts

Signed-off-by: Rohit Yadav <rohit@apache.org>
4 weeks agohelp: don't display the 'fake' filter option in api help doc
Rohit Yadav [Sun, 22 Apr 2018 15:29:05 +0000 (20:59 +0530)] 
help: don't display the 'fake' filter option in api help doc

Signed-off-by: Rohit Yadav <rohit@apache.org>
4 weeks agoset: display server profile details when profile is `set`
Rohit Yadav [Sun, 22 Apr 2018 15:28:23 +0000 (20:58 +0530)] 
set: display server profile details when profile is `set`

Signed-off-by: Rohit Yadav <rohit@apache.org>
4 weeks agocompleter: use response keys to show filter options
Rohit Yadav [Sun, 22 Apr 2018 15:27:55 +0000 (20:57 +0530)] 
completer: use response keys to show filter options

Signed-off-by: Rohit Yadav <rohit@apache.org>
4 weeks agocache: add API response keys in API cache for filter options
Rohit Yadav [Sun, 22 Apr 2018 15:27:19 +0000 (20:57 +0530)] 
cache: add API response keys in API cache for filter options

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 weeks agocmd: introduce poc text and table outputs
Rohit Yadav [Sat, 21 Apr 2018 16:54:17 +0000 (22:24 +0530)] 
cmd: introduce poc text and table outputs

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 weeks agocmk: fix presentational issues
Rohit Yadav [Mon, 16 Apr 2018 15:50:16 +0000 (21:20 +0530)] 
cmk: fix presentational issues

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 weeks agoclient: implement login based API calls, simplify config
Rohit Yadav [Mon, 16 Apr 2018 02:07:41 +0000 (07:37 +0530)] 
client: implement login based API calls, simplify config

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agoset: autocompletion for set parameters
Rohit Yadav [Sat, 14 Apr 2018 01:14:25 +0000 (06:44 +0530)] 
set: autocompletion for set parameters

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agohelp: fix help to work with -h and help <api>
Rohit Yadav [Sat, 14 Apr 2018 00:02:58 +0000 (05:32 +0530)] 
help: fix help to work with -h and help <api>

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agolint: introduce lint and fix lint issues
Rohit Yadav [Fri, 13 Apr 2018 22:43:20 +0000 (04:13 +0530)] 
lint: introduce lint and fix lint issues

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agoprompt: emoji-roulette on new shell
Rohit Yadav [Fri, 13 Apr 2018 22:05:58 +0000 (03:35 +0530)] 
prompt: emoji-roulette on new shell

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agoabout: add separate go file for cli name, version
Rohit Yadav [Fri, 13 Apr 2018 21:55:06 +0000 (03:25 +0530)] 
about: add separate go file for cli name, version

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agoconfig: implement ini based config same as legacy cloudmonkey
Rohit Yadav [Fri, 13 Apr 2018 21:54:27 +0000 (03:24 +0530)] 
config: implement ini based config same as legacy cloudmonkey

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agovendor: merge readline forks, add go-ini for config management
Rohit Yadav [Fri, 13 Apr 2018 18:50:39 +0000 (00:20 +0530)] 
vendor: merge readline forks, add go-ini for config management

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agodocs: display better formatted help with 80char width
Rohit Yadav [Fri, 13 Apr 2018 18:37:39 +0000 (00:07 +0530)] 
docs: display better formatted help with 80char width

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agotravis: enable travis for build checks
Rohit Yadav [Fri, 13 Apr 2018 18:30:19 +0000 (00:00 +0530)] 
travis: enable travis for build checks

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agoconfig: use a cross-platform compatible monkey emoji
Rohit Yadav [Fri, 13 Apr 2018 18:29:59 +0000 (23:59 +0530)] 
config: use a cross-platform compatible monkey emoji

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agocmk: on error return non-zero exit code
Rohit Yadav [Fri, 13 Apr 2018 12:52:45 +0000 (18:22 +0530)] 
cmk: on error return non-zero exit code

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agocli: improve docs output
Rohit Yadav [Fri, 13 Apr 2018 12:52:03 +0000 (18:22 +0530)] 
cli: improve docs output

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agocli: improve selector and autocompletion
Rohit Yadav [Fri, 13 Apr 2018 12:51:32 +0000 (18:21 +0530)] 
cli: improve selector and autocompletion

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agocli: implement auto-completion for apis
Rohit Yadav [Thu, 12 Apr 2018 23:13:09 +0000 (04:43 +0530)] 
cli: implement auto-completion for apis

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agovendor: introduce vendoring and build system
Rohit Yadav [Wed, 11 Apr 2018 00:19:09 +0000 (05:49 +0530)] 
vendor: introduce vendoring and build system

- Adds vendor and dependencies
- Improved build system (Makefile based from
  https://github.com/vincentbernat/hellogopher)
- GOPATH free, no need to have source put in $GOPATH run/build from
  anywhere

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agocloudmonkey: initial Go port (cmk)
Rohit Yadav [Tue, 10 Apr 2018 22:36:56 +0000 (04:06 +0530)] 
cloudmonkey: initial Go port (cmk)

- Basic command handling and shell
- API verb, resource autocompletion
- PoC API arg autocompletion with interactive selector

Signed-off-by: Rohit Yadav <rohit@apache.org>
6 weeks agocloudmonkey: purge legacy files
Rohit Yadav [Tue, 10 Apr 2018 22:32:40 +0000 (04:02 +0530)] 
cloudmonkey: purge legacy files

Signed-off-by: Rohit Yadav <rohit@apache.org>
18 months agocloudmonkey: update precache against latest CloudStack master 5.3
Rohit Yadav [Sun, 20 Nov 2016 09:01:35 +0000 (14:31 +0530)] 
cloudmonkey: update precache against latest CloudStack master

This includes 542 APIs discovered by cloudmonkey caching system

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
22 months agoMerge pull request #13 from phillipkent/fix_bug_windows_readline 5.3.3
Rohit Yadav [Fri, 15 Jul 2016 11:16:05 +0000 (16:46 +0530)] 
Merge pull request #13 from phillipkent/fix_bug_windows_readline

fix bug in using readline in WindowsI found a bug with use of 'readline' for Python 2.7 on Windows 7. Cloudmonkey fails to run with this error:

File c:\python27\lib\site-packages\cloudmonkey\cloudmonkey.py  line 70 module>
            If libedit in readline.__doc__
TypeError:  argument of type NoneType is not iterable

It requires modification of cloudmonkey.py at line 70.

The error and fix are the same as reported here:
http://bugs.python.org/issue18852
https://hg.python.org/cpython/rev/3070fdd58645

Note: I haven't tested this for Cloudmonkey in other Windows versions, or other Python versions.

* pr/13:
  fix bug in using readline in Windows

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agofix bug in using readline in Windows 13/head
Phillip Kent [Tue, 26 Apr 2016 10:21:01 +0000 (11:21 +0100)] 
fix bug in using readline in Windows

2 years agoMerge pull request #11 from phillipkent/fix_urllib_quote_plus
Rohit Yadav [Thu, 7 Apr 2016 11:29:12 +0000 (16:59 +0530)] 
Merge pull request #11 from phillipkent/fix_urllib_quote_plus

Update requester.pyurllib.quote_plus() requires the option safe="*" (that is, the * character is not encoded) to be consistent with CloudStack's internal encoder/decoder. Without this, API calls containing the * character will fail API authentication.

* pr/11:
  Update requester.py

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoREADME: add pip install method using git repo
Rohit Yadav [Wed, 10 Feb 2016 21:08:47 +0000 (22:08 +0100)] 
README: add pip install method using git repo

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoMerge pull request #12 from 'waegemae/master'
Rohit Yadav [Tue, 19 Jan 2016 14:47:59 +0000 (15:47 +0100)] 
Merge pull request #12 from 'waegemae/master'

Allow 'sync' as a verb without overriding the cloudmonkey sync implementation

BUG-ID: CLOUDSTACK-9233
Reviewed-by: Frank Maximus frank.maximus@nuagenetworks.net
Reported-by :Eric Waegeman eric.waegeman@nuagenetworks.net

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoCHANGES: update changes file
Rohit Yadav [Tue, 19 Jan 2016 14:27:23 +0000 (15:27 +0100)] 
CHANGES: update changes file

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: print csv rows based on what's available
Rohit Yadav [Tue, 19 Jan 2016 14:24:01 +0000 (15:24 +0100)] 
cloudmonkey: print csv rows based on what's available

This fails if the row item has any additional key than the first row with error:
Error on parsing and printing dict contains fields not in fieldnames

The fix is to start with an empty dictionary fill it based on known keys and
then ask csv to print that row

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: manually print csv header
Rohit Yadav [Tue, 19 Jan 2016 14:22:22 +0000 (15:22 +0100)] 
cloudmonkey: manually print csv header

Python 2.6 and below don't have 'writeheader' method, so simply
print the header manually

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoSummary: Allow 'sync' as a verb without overriding the cloudmonkey sync implementation 12/head
Eric Waegeman [Wed, 13 Jan 2016 14:48:38 +0000 (15:48 +0100)] 
Summary: Allow 'sync' as a verb without overriding the cloudmonkey sync implementation

BUG-ID: CLOUDSTACK-9233
Reviewed-by: Frank Maximus <frank.maximus@nuagenetworks.net>
Reported-by :Eric Waegeman <eric.waegeman@nuagenetworks.net>

2 years agocloudmonkey: return autocompletion suggestions sorted by name
Rohit Yadav [Tue, 12 Jan 2016 18:29:52 +0000 (23:59 +0530)] 
cloudmonkey: return autocompletion suggestions sorted by name

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: zsh styled history invocation using !
Rohit Yadav [Fri, 8 Jan 2016 16:56:11 +0000 (22:26 +0530)] 
cloudmonkey: zsh styled history invocation using !

- Can run historic command with history !<num> or just !<num> on the shell
- Instead of running the history command, print on prompt and waits for user
  action
- history c or history clear to clear history

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoUpdate requester.py 11/head
Phillip Kent [Sat, 19 Dec 2015 15:47:56 +0000 (15:47 +0000)] 
Update requester.py

urllib.quote_plus() requires the option safe="*" (that is, the * character is not encoded) to be consistent with CloudStack's internal encoder/decoder. Without this, API calls containing the * character will fail API authentication.

2 years agocloudmonkey: add new command history to see history
Rohit Yadav [Wed, 16 Dec 2015 11:18:03 +0000 (16:48 +0530)] 
cloudmonkey: add new command history to see history

Adds new cloudmonkey command 'history' to list history, clear history and
list last 'n' lines from the history

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoRevert "Fix some parameters are double encoded" 5.3.2
Rohit Yadav [Wed, 19 Aug 2015 08:59:05 +0000 (14:29 +0530)] 
Revert "Fix some parameters are double encoded"

This breaks API, api expects only single encoding. Tested against 4.5.1.

... "(UI uses javascript to encode on
the fly, see ui/scripts/accounts.js:1852), such as registerSSHKeyPair/publickey.
I did a quick search for other cases, bu there may be more parameters."

This reverts commit 6bd92395592c133a63b8087bf4acc9cb3a1aac0d.

2 years agoCHANGES: update changes since 5.3.1
Rohit Yadav [Fri, 14 Aug 2015 08:52:01 +0000 (14:22 +0530)] 
CHANGES: update changes since 5.3.1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: update precache
Rohit Yadav [Fri, 14 Aug 2015 08:47:07 +0000 (14:17 +0530)] 
cloudmonkey: update precache

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoCHANGES: update changelog wrt 5.3.2
Rohit Yadav [Tue, 11 Aug 2015 04:53:16 +0000 (10:23 +0530)] 
CHANGES: update changelog wrt 5.3.2

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoFIX responses /contain/ word "response", but may not exactly match
Nuno Tavares [Mon, 3 Aug 2015 09:06:23 +0000 (11:06 +0200)] 
FIX responses /contain/ word "response", but may not exactly match

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #8

2 years agorequester: handle error when no response is found in the API response
Rohit Yadav [Tue, 14 Jul 2015 07:53:23 +0000 (13:23 +0530)] 
requester: handle error when no response is found in the API response

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoremove whitespace. This close #7
pdion891 [Sat, 4 Jul 2015 12:31:42 +0000 (08:31 -0400)] 
remove whitespace. This close #7

2 years agoremove docker.io from image path, update doc
Pierre-Luc Dion [Tue, 30 Jun 2015 12:35:53 +0000 (08:35 -0400)] 
remove docker.io from image path, update doc

Signed-off-by: pdion891 <pdion891@apache.org>
2 years agocleanup, remove commented lines
Pierre-Luc Dion [Tue, 30 Jun 2015 12:35:27 +0000 (08:35 -0400)] 
cleanup, remove commented lines

Signed-off-by: pdion891 <pdion891@apache.org>
2 years agoUpdate contribution howto, add Docker howto
Pierre-Luc Dion [Mon, 29 Jun 2015 11:09:36 +0000 (07:09 -0400)] 
Update contribution howto, add Docker howto

Signed-off-by: pdion891 <pdion891@apache.org>
2 years agobuild cloudmonkey at docker build
Pierre-Luc Dion [Mon, 29 Jun 2015 10:57:54 +0000 (06:57 -0400)] 
build cloudmonkey at docker build

Signed-off-by: pdion891 <pdion891@apache.org>
2 years agoinitial Dockerization files
Pierre-Luc Dion [Sat, 20 Jun 2015 14:39:10 +0000 (10:39 -0400)] 
initial Dockerization files

Signed-off-by: pdion891 <pdion891@apache.org>
2 years agocloudmonkey: aggregate keys from response items to print table's header
Rohit Yadav [Mon, 29 Jun 2015 21:40:14 +0000 (23:40 +0200)] 
cloudmonkey: aggregate keys from response items to print table's header

In case a response item lacks sufficient keys, cloudmonkey's tabular output
would print multiple table headers. The fix finds superset of keys of the items
and prints it before proceeding. For items which lack a key, empty values are
printed

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: fix csv output to correctly output UTF8 strings
Rohit Yadav [Fri, 19 Jun 2015 12:56:20 +0000 (15:56 +0300)] 
cloudmonkey: fix csv output to correctly output UTF8 strings

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoCHANGES: add note on csv output display
Rohit Yadav [Fri, 5 Jun 2015 15:16:38 +0000 (17:16 +0200)] 
CHANGES: add note on csv output display

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: add a new output format CSV
Rohit Yadav [Fri, 5 Jun 2015 15:10:15 +0000 (17:10 +0200)] 
cloudmonkey: add a new output format CSV

With CSV, it's possible to now export CloudStack data to an excel sheet for
example :)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: pep8-tify code
Rohit Yadav [Fri, 22 May 2015 17:44:00 +0000 (18:44 +0100)] 
cloudmonkey: pep8-tify code

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoProvide signatureversion as config.option for backward compatibility;
Nuno Tavares [Fri, 22 May 2015 14:05:07 +0000 (16:05 +0200)] 
Provide signatureversion as config.option for backward compatibility;

Follow specification: only provide signatureversion=&expires= in URL if signatureversion=3
http://docs.cloudstack.apache.org/en/latest/dev.html?highlight=signatureversion

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #6

3 years agoFIX some parameters are double encoded (UI uses javascript to encode on the fly,...
Nuno Tavares [Fri, 22 May 2015 14:01:48 +0000 (16:01 +0200)] 
FIX some parameters are double encoded (UI uses javascript to encode on the fly, see ui/scripts/accounts.js:1852), such as registerSSHKeyPair/publickey. I did a quick search for other cases, bu there may be more parameters.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoFIX split for paramter=value where value could be anything. An example case where...
Nuno Tavares [Fri, 22 May 2015 14:00:43 +0000 (16:00 +0200)] 
FIX split for paramter=value where value could be anything. An example case where value can contain the "=" sign: registerSSHKeyPair (publickey)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: send better error messages if none if sent in headers
Rohit Yadav [Fri, 22 May 2015 09:18:53 +0000 (10:18 +0100)] 
cloudmonkey: send better error messages if none if sent in headers

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoIn the specific case of a "create networkoffering" with no services, the parameter...
Nuno Tavares [Fri, 15 May 2015 10:27:27 +0000 (12:27 +0200)] 
In the specific case of a "create networkoffering" with no services, the parameter 'supportedservices' gets stripped off because it's empty. However, the API requires it as mandatatory - and yes, the UI allows you to create a n.o. with no services.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #4

3 years agoFix KeyError: 'TERM' when no TERM exist
Hiroshi Miura [Fri, 8 May 2015 06:42:53 +0000 (06:42 +0000)] 
Fix KeyError: 'TERM' when no TERM exist

- There is no TERM variable called from script
  in docker guest.
  It cause KeyError: 'TERM'.

This closes #3

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: bump up version to 5.3.2 for next release
Rohit Yadav [Thu, 23 Apr 2015 15:00:17 +0000 (17:00 +0200)] 
cloudmonkey: bump up version to 5.3.2 for next release

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCLOUDSTACK-8396: Add a new XML display output mode
Rohit Yadav [Thu, 23 Apr 2015 14:53:44 +0000 (16:53 +0200)] 
CLOUDSTACK-8396: Add a new XML display output mode

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: for https requests use TLSv1
Rohit Yadav [Tue, 14 Apr 2015 09:11:14 +0000 (14:41 +0530)] 
cloudmonkey: for https requests use TLSv1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: update precache using 4.5 branch
Rohit Yadav [Tue, 31 Mar 2015 10:21:41 +0000 (15:51 +0530)] 
cloudmonkey: update precache using 4.5 branch

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: make code pep8 compliant
Rohit Yadav [Tue, 31 Mar 2015 10:16:11 +0000 (15:46 +0530)] 
cloudmonkey: make code pep8 compliant

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agorequester: unicode string improvements when printing spinner
Rohit Yadav [Thu, 5 Mar 2015 05:36:37 +0000 (11:06 +0530)] 
requester: unicode string improvements when printing spinner

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoMakefile: upgrade packages when installing
Rohit Yadav [Thu, 5 Mar 2015 05:05:59 +0000 (10:35 +0530)] 
Makefile: upgrade packages when installing

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCHANGES: update changes for 5.3.1 5.3.1
Rohit Yadav [Thu, 26 Feb 2015 10:38:46 +0000 (16:08 +0530)] 
CHANGES: update changes for 5.3.1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCLOUDSTACK-8270: get rid of buggy dot completer, use spinning cursor to wait
Rohit Yadav [Fri, 20 Feb 2015 12:29:31 +0000 (17:59 +0530)] 
CLOUDSTACK-8270: get rid of buggy dot completer, use spinning cursor to wait

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: do a case-insensitive missing api arg search
Rohit Yadav [Tue, 3 Feb 2015 09:31:00 +0000 (15:01 +0530)] 
cloudmonkey: do a case-insensitive missing api arg search

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: don't break on command parsing, just print error and return
Rohit Yadav [Tue, 3 Feb 2015 07:02:53 +0000 (12:32 +0530)] 
cloudmonkey: don't break on command parsing, just print error and return

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCHANGES: fix CHANGES with arg changes
Rohit Yadav [Mon, 12 Jan 2015 05:10:23 +0000 (10:40 +0530)] 
CHANGES: fix CHANGES with arg changes

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: in case both -b and -n are passed, block for async api
Rohit Yadav [Mon, 12 Jan 2015 05:08:30 +0000 (10:38 +0530)] 
cloudmonkey: in case both -b and -n are passed, block for async api

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: fix async api block/unblock options to be more intuitive
Rohit Yadav [Mon, 12 Jan 2015 05:04:29 +0000 (10:34 +0530)] 
cloudmonkey: fix async api block/unblock options to be more intuitive

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: print key when value is dictionary
Rohit Yadav [Thu, 8 Jan 2015 11:54:11 +0000 (17:24 +0530)] 
cloudmonkey: print key when value is dictionary

Thanks to Geoff for finding this, the output print method did not output
key in case the value is a dictionary object

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: change version to 5.3.1
Rohit Yadav [Mon, 15 Dec 2014 06:01:47 +0000 (11:31 +0530)] 
cloudmonkey: change version to 5.3.1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: make filtered output uniform across display outputs
Rohit Yadav [Thu, 11 Dec 2014 13:12:04 +0000 (18:42 +0530)] 
cloudmonkey: make filtered output uniform across display outputs

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: add -a or --async flag to let cloudstack not block on async apis
Rohit Yadav [Wed, 10 Dec 2014 17:04:21 +0000 (22:34 +0530)] 
cloudmonkey: add -a or --async flag to let cloudstack not block on async apis

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: fix server profile loading using -p flag
Rohit Yadav [Wed, 10 Dec 2014 16:45:42 +0000 (22:15 +0530)] 
cloudmonkey: fix server profile loading using -p flag

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: add -p option to allow overriding profile
Rohit Yadav [Wed, 10 Dec 2014 11:14:32 +0000 (16:44 +0530)] 
cloudmonkey: add -p option to allow overriding profile

- -p or --profile overrides current selected profile for cloudmonkey
- this won't write the new profile/selection to config thereby allowing many
  cloudmonkey instances run both in interpretor and bash modes with different
  profile sharing common ui and core config options

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCHANGES: move to markdown format for Github friendly viewing
Rohit Yadav [Tue, 9 Dec 2014 12:59:14 +0000 (18:29 +0530)] 
CHANGES: move to markdown format for Github friendly viewing

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCHANGES: add list of changes for 5.3.1
Rohit Yadav [Tue, 9 Dec 2014 12:55:14 +0000 (18:25 +0530)] 
CHANGES: add list of changes for 5.3.1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: don't output empty line after every output
Rohit Yadav [Tue, 9 Dec 2014 08:19:44 +0000 (13:49 +0530)] 
cloudmonkey: don't output empty line after every output

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: fix the weirdest readline import error ever
Rohit Yadav [Fri, 5 Dec 2014 08:19:48 +0000 (13:49 +0530)] 
cloudmonkey: fix the weirdest readline import error ever

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agorequester: pass verifysslcert option while user logs in
Rohit Yadav [Wed, 3 Dec 2014 17:39:49 +0000 (23:09 +0530)] 
requester: pass verifysslcert option while user logs in

Thanks to Yuri Kogun <ykogun@outlook.com> for reporting this issue on the
user ML.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: for account param use listAccounts
Rohit Yadav [Thu, 13 Nov 2014 22:20:37 +0000 (03:50 +0530)] 
cloudmonkey: for account param use listAccounts

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCLOUDSTACK-7935: keep colons in the request to ACS
Remi Bergsma [Tue, 18 Nov 2014 11:00:12 +0000 (12:00 +0100)] 
CLOUDSTACK-7935: keep colons in the request to ACS

ACS does not decode %3A to colon and thus some requests break
This closes #1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: autocomplete when cursor is not at the end, auto add space
Rohit Yadav [Wed, 12 Nov 2014 18:12:08 +0000 (23:42 +0530)] 
cloudmonkey: autocomplete when cursor is not at the end, auto add space

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: for username/password auth, have option to configure domain
Rohit Yadav [Wed, 12 Nov 2014 17:39:58 +0000 (23:09 +0530)] 
cloudmonkey: for username/password auth, have option to configure domain

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: Fix cloudmonkey command line arg cleaning 5.3.0
Rohit Yadav [Tue, 4 Nov 2014 13:01:43 +0000 (18:31 +0530)] 
cloudmonkey: Fix cloudmonkey command line arg cleaning

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agorequester: don't send out empty key/value args
Rohit Yadav [Tue, 4 Nov 2014 13:00:27 +0000 (18:30 +0530)] 
requester: don't send out empty key/value args

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: Add config 'verifysslcert' to enable/disable SSL cert checking
Rohit Yadav [Tue, 4 Nov 2014 11:15:21 +0000 (16:45 +0530)] 
cloudmonkey: Add config 'verifysslcert' to enable/disable SSL cert checking

This config is per server profile basis, default is true

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: fix set command issue, close stdout/err when exiting cloudmonkey
Rohit Yadav [Mon, 3 Nov 2014 16:44:23 +0000 (22:14 +0530)] 
cloudmonkey: fix set command issue, close stdout/err when exiting cloudmonkey

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: fix error handling and unicode string conversions
Rohit Yadav [Sat, 1 Nov 2014 07:55:29 +0000 (13:25 +0530)] 
cloudmonkey: fix error handling and unicode string conversions

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>