summaryrefslogtreecommitdiff
path: root/openstackclient/compute/v2/keypair.py
Commit message (Collapse)AuthorAgeFilesLines
* log take_action parameters in a single placeAkihiro Motoki2016-02-021-20/+4
| | | | | | | | | | | | Previously each command logs take_action parameters explicitly by using @utils.log_method decorator or log.debug(). Some commands have no logging. This commit calls a logger in the base class and drops all logging definition from individual commands. Closes-Bug: #1532294 Change-Id: I43cd0290a4353c68c075bade9571c940733da1be
* Trivial: Remove useless return from files in compute.Tang Chen2015-12-171-1/+0
| | | | Change-Id: I9dc6749256fcd53d292d7f658912c032e9ce9df5
* Use a common decorator to log 'take_action' activationJoshua Harlow2015-09-011-3/+3
| | | | | | | | | Instead of duplicating the same log statement throughout the code, the same logic can be provided by a shared decorator that abstracts away the logging capability and unifies it behind a common function instead. Change-Id: Icc63bced7347c8bbf0299a4c5821425a10892a79
* Fine tune some of the helps commandsSteve Martinelli2015-01-131-3/+3
| | | | | | | | | try and add some consistency with the show and delete commands. replace 'show x' with 'display x' change 'delete a y' with just 'delete y' Change-Id: I47dfa8ee23ac5c41b355796415eb515155832f65
* Command object docs: aggregate, console *, keypairDean Troyer2014-11-191-10/+10
| | | | | | | | | aggregate console log console url keypair Change-Id: Iec9b8404ed5febd061a5dfd674b76aaa8aba67bc
* Merge "Create message variables for exceptions"Jenkins2014-08-241-2/+3
|\
| * Create message variables for exceptionsSteve Martinelli2014-08-241-2/+3
| | | | | | | | | | | | | | Instead of inline messages, let's create variables instead, as it's easier to find strings, and mark them for translation. Change-Id: Ibbcfdbc59d12a0cb4af50f73043d3ff7f3c76f99
* | Normalize more help stringsDean Troyer2014-07-241-4/+4
|/ | | | Change-Id: I2b21bc904e35c1cc50da369d148e607fe3e8cf90
* replace string format arguments with function parametersChristian Berendt2014-05-201-4/+4
| | | | | | | | There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
* Fix 'keypair show' command outputDean Troyer2014-03-071-1/+1
| | | | | | | | The attempt to get the data dict out of the keypair resource object uses a key 'keypair. This is incorrect, no key is required. Closes-Bug: 1289594 Change-Id: I7887119c1d800d389cb6f63ea7847bea1e25bb52
* Begin Python 3 compatabilityDean Troyer2013-07-291-2/+3
| | | | | | | | | | | * use six.iteritems() * replace basestring with six.string_types * convert print statements to functions (they're all debugging and should be removed eventually anyway) * clean up OpenStack copyright: LLC -> Foundation Change-Id: Icb14212bcb408e63816bfec3922a697bc1a6c946
* Remove api = apiName calls from each methodSteve Martinelli2013-07-121-4/+0
| | | | | | | | | | | As discussed in https://review.openstack.org/#/c/36352/ for each command, we were setting api = identity or volume... etc, this was for an old way of calling commands that are is no longer used. Also removed openstackclient/common/command.py Change-Id: I2705f35d343f2ae729dc22d6aed0b852b2f8ca19
* Add compute keypair commandsDean Troyer2013-04-121-0/+160
Add create, delete, list, show keypair commands Part of blueprint nova-client Change-Id: Ieba00d3b3e3a326f875c01ac2a2b9bbd036cd7c9