summaryrefslogtreecommitdiff
path: root/troveclient/v1/security_groups.py
Commit message (Collapse)AuthorAgeFilesLines
* Enabled F821, H306, H402, and H404 flake8 ruleSushil Kumar2014-05-091-22/+8
| | | | | | | | | | | | | | Reasons: - F821 is disabled. - H306 is disabled. - H402 is disabled. - H404 is disabled. Changes: - Updates tox.ini to enable F821, H306, H402 and H404 rules. - Updates code for F821, H306, H402 and H404 violation. Change-Id: I772270bb833ac774e080fc63e330d6b333f23de2
* Fix create call for security group rulesDenis Makogon2014-04-011-13/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reasons: - The security group rule create call was expecting from_port, to_port, and protocol as arguments, but the Trove API was ignoring these since it picks these up from the respective datastore confs. Changes: - Removing the extra arguments from the security-group-rule create command: - from_port - to_port - protocol Note that even though the user was able to specify the ports for the rule these were _never_ being honored since these were being picked up from the respective config files. Usage before change: - trove secgroup-add-rule <security_group> <protocol> <from_port> <to_port> <cidr> Usage after change: - trove secgroup-add-rule <security_group> <cidr> Change-Id: Ic1440f735b6cf2b8b4f29c5ab9f48bcb427ca9e6 Closes-Bug: #1298749
* Remove vim headerHe Yongli2014-02-161-2/+0
| | | | | | | | | | | 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
* Updates common.check_for_exceptions and its callsSushil Kumar2014-01-231-3/+3
| | | | | | | | | | | | | | | Reasons: - exceptions.from_response has 3 arguments but is being called with one argument less, which is url. Changes: - Updated common.check_for_exceptions to support urls as needed by troveclient.openstack.common.apiclient.exceptions.from_response. - Adds url to exceptions.from_response calls in troveclient. Closes-Bug: #1266239 Change-Id: Ie18c90349479f740369f63c48a8d9b463641f84d
* Adding pagination support for backupsRobert Myers2013-12-111-24/+3
| | | | | | | | | | * add a _pagination method to base Manager * switched existing paginated list to use the new method * removed description from backup list and added updated Implements: blueprint paginate-backup-list Change-Id: If33c55a35bae8ebd6ed654af5ce6dfd7f9e40096
* Ignore fewer PEP8/flake8 rulesDenis Makogon2013-12-101-5/+5
| | | | | | | | | | | | 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
* Merge "Import urlutils module from openstack-common"Jenkins2013-10-231-4/+3
|\
| * Import urlutils module from openstack-commonKui Shi2013-10-231-4/+3
| | | | | | | | | | | | | | | | | | urlutils defines a series of urllib/urlparse modules for Python 2&3 compatability. Partial implements: blueprint py33-support Change-Id: I55c2c5d479d2f7a86d3a0c207dc40794006d951c
* | Merge "Import exceptions module from openstack-common"Jenkins2013-10-231-1/+1
|\ \ | |/
| * Import exceptions module from openstack-commonKui Shi2013-10-231-1/+1
| | | | | | | | | | | | Partial implements: blueprint py33-support Change-Id: I5ee3e85e1adf76779831beeb0a91591d342c798d
* | Fixing copyright and license headersMichael Basnight2013-10-221-1/+4
|/ | | | | | * Added HP copyrights as appropriate Change-Id: If4f30b0caf03b16f5fb4f54185ba80d9fa41d0b0
* Massive refactoring to the troveclientMichael Basnight2013-10-091-0/+124
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