17 Commits

Author SHA1 Message Date
Jenkins
914da1aa85 Merge "Improve help strings" 2014-03-18 01:20:12 +00:00
Greg Lucas
9f0a8cade7 Remove arguments deprecated after Diablo
Change-Id: Ia65ee002ad2aa2b6d2401586d1e06b8ffdb633dd
Closes-Bug: #1279483
2014-03-13 09:50:30 -07:00
Andreas Jaeger
59ddb71ce1 Improve help strings
Make help strings more consistent:
* Fix spelling and capitalization
* Add "." at end of each string
* Fix spaces.
* Improve wording

Change-Id: I22e84ebecb87f1c803cfb8369db3798fe56903ff
2014-03-11 19:04:01 +01:00
He Yongli
59ec2bb433 Remove vim header
No need to set tabstop tons of times, this can be set in your vimrc
file instead.

More disucssion:
http://openstack.10931.n7.nabble.com/Remove-vim-modelines-td21780.html

Change-Id: I45766d91f0c0b3622bbdc7dc5517497c87ebee8c
Closes-Bug: #1229324
2014-02-16 13:08:07 +08:00
amcrn
fce98a9173 Support Extensions to Trove Client
extensions on the contrib path (i.e. troveclient/v1/contrib/*.py),
extensions on the python path that follow the naming convention of
*_python_troveclient_ext, and entry-points will now be discovered
and loaded.

due to the mismatch of the api version and the troveclient
package name, '1.0' vs. '1', the client has been patched to look
for contrib in troveclient/v1 vs. the standard troveclient/v1_0

Change-Id: I3ea7bb5ba471b0d421581dcfda7216f429cb7b65
Closes-Bug: #1267577
2014-01-23 11:11:58 -08:00
Sushil Kumar
d56111cb07 Fixed misspellings of common words
Fixed misspelling of common words found by the 'misspellings' tool.

Change-Id: I8e03379f92b62fd4856bbc74b7e4641226a403d3
Closes-Bug: #1257531
2014-01-14 03:39:07 +00:00
Sushil Kumar
2c509b7fa1 Fixes trove help command
Reason:
- trove help output misplaces the position of "<subcommand> ..."
  from bottom to top.
- This behavior is because of formatting done to
  Print positionals before optionals.

Changes:
- Sequence fixed in trove help output.

Change-Id: I8aff2eec9f915a7ec1960b67ee7ba8423624aad6
Closes-Bug: #1260332
2013-12-12 14:25:27 +00:00
Denis Makogon
69c865695f Ignore fewer PEP8/flake8 rules
Reasons:
- code should be pythonicaly clean,
  that is why number of ignored rules should reduced

Changes:
- E125, F811, H102, H103, F201, H23,
  H302, F841, H301, H702, H703 rules are now enabled

Change-Id: Ibf4025162244d3c2f1278b49a76ec1527a729042
2013-12-10 18:49:20 +02:00
Nick Shobe
60e0471b88 Allow --json output override printing dict/list
Change-Id: Ib02f244cb969ac8dfc92ac94e6e915063d13764d
2013-11-21 02:23:50 -06:00
Jenkins
68f8ae0d9c Merge "Usage String has Positionals after Optionals" 2013-11-13 23:33:39 +00:00
Dirk Mueller
92a8193b00 Fix Pep8 indentation issues only found with Pep8 1.4.6+
Change-Id: Iea9821b95278f1853e5fe98b21c61cb3e9e42da8
2013-11-01 01:12:56 +01:00
Jenkins
00507ae54f Merge "Add --bypass-url option to trove client" 2013-10-25 19:52:20 +00:00
amcrn
21a468dd3b Usage String has Positionals after Optionals
print positionals before optionals in the usage string to help
users avoid argparse nargs='*' problems.

ex: 'trove create --databases <db_name> <name> <flavor_id>'
fails with 'error: too few arguments', but this succeeds:
'trove create <name> <flavor_id> --databases <db_name>'

Change-Id: I400c9f0ca5580bd287c5f3bcf935352e88071bc8
Closes-Bug: #1243981
2013-10-25 00:15:41 -07:00
Michael Basnight
af4d4ed4f7 Fixing copyright and license headers
* Added HP copyrights as appropriate

Change-Id: If4f30b0caf03b16f5fb4f54185ba80d9fa41d0b0
2013-10-22 11:21:33 -07:00
daniel-a-nguyen
e9c5eddc51 Add --bypass-url option to trove client
Change-Id: Ie0596f2dd302eec293f3a5ab3306d56fb0fdcdb8
Closes-Bug: #1240285
2013-10-21 16:49:31 -07:00
Monty Taylor
06e7ba4586 Add support for a service type env var
Rackspace is currently setting their service types to weird things.
Support them, because we love special snowflakes.

Change-Id: I1519be00a3086945338a953bc2a1e7a4e0e65400
2013-10-09 23:03:44 -04:00
Michael Basnight
fd43cbd73b Massive refactoring to the troveclient
The new client adheres to the standards of the other clients
now. It prints out tables, uses ENVVAR's for auth, no longer
stores pickled json in a login token, uses openstack common,
and moves the cli operations into a v1 module for the future
of trove when it has a v2 api.

Please note for compatibility, the troveclient.compat module
has the old cli. In order to deploy it, amend the setup.cfg
to include the compat module.

implements blueprint cli-compliance-upgrade

Change-Id: Ie69d9dbc75ce90496da316244c97acca1877a327
2013-10-09 19:21:08 -07:00