Commit Graph

21 Commits

Author SHA1 Message Date
Andrey Kurilin 0a60aae852 Rename v1_1 to v2
Module novaclient.v1_1 is used as implementation of V1.1, V2 and V3.
Since future development(microversioning) will be done across V2,
implementation should be done in appropriate module(to prevent misleading).

Despite the fact that implementation for all versions are equal, discover
method for contrib path worked only for v1.1. This patch fixes this bug and
modifies shell tests to check all versions.

Change-Id: Ib6798f4dfe177586302141f522dc593560ce6a5b
2015-02-04 17:40:46 +02:00
Eric Guo d44e598692 Remove usage of module py3kcompat
Module py3kcompat was removed from oslo-incubator. We need remove its
usage in client side firstly. This make us move smoothly when sync
oslo-incubator code.

Change-Id: I8b07c32c9852e747579a23685f3c8a07ac13ec01
Partial-Bug: #1280033
2014-02-25 09:17:54 +08:00
huangtianhua beaf57cfa7 Fix docstring on novaclient
Something like this:

1. Modify "`Image` to add metadata to" to ""`Image` to delete metadata" on
delete_meta()
2. Modify "The security group to delete" to "The security group to update"
on update()
3. Remove the "password" from the description on update()

Change-Id: I0120d84cc263d4eb58b692a5eb6f20ca0ef8264d
Closes-Bug: #1258461
2013-12-09 14:32:24 +08:00
Chuck Short c450b39828 python3: Fix imports for py2/py3
Python3 reorganized the standard library and moved several functions
to different modules. Six provides a consistent interface
to them through the fake six.moves module.

However, the urlparse, urllib2, etc modules have been combined
into one module which Six does not support so we do it via
py3kcompat.

Modules such as StringIO and CStringIO have been removed
completely so we use the io module.

Change-Id: I53adac11b634de2c710fc39def36bcec96366710
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-08-27 14:50:34 -04:00
Chuck Short a25d4fe59a python3: Compatibility for iteritems differences
In python3 dict.iteritems(), dict.iterkeys(), and
dict.itervalues() are no longer supported. So use
six.iteritems() where it is appropriate.

Change-Id: I8b07dc2a89d790ec275d45f859e1644e9b00c837
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-06-24 11:51:04 -05:00
Zhenguo Niu 66a98966bf Add update method of security group name and description
make it possible to edit the name and description of
common security groups, we can not rename the default.
nova patch : https://review.openstack.org/#/c/29490/

Fixes: bug #918393

Change-Id: I559f2fa09c1f205d3bbe7352fc169152e6b38586
2013-05-30 22:17:02 +00:00
Davanum Srinivas c5b579926f Fix Copyright Headers from LLC to Foundation
follow the lead from nova and oslo projects

Change-Id: I270c5f1e4eefa4b72e292bfb4a4c60de0c3f6e4a
2013-03-13 20:12:23 -04:00
Eoghan Glynn fc2d622bac Add support for all-tenants search opt to secgroup-list
Related to bug 1046054.

Once I6157e408 lands, we will be respecting the all-tenants search option
in the security groups retrieval API. Hence the CLI should be capable of
adding this option when appropriate.

Change-Id: If1217a5ffc7316e4661326c38da9b2956424ab05
2012-09-14 16:17:05 +01:00
Josh Kearney d4c9b12f39 Indicate unused variables and other misc. house cleaning.
Change-Id: I4529d8b6b27dddb1b79ee2167a054b471eaf0dbc
2012-06-27 11:55:36 -05:00
François Charlier d17505462d Fix Quota ant SecurityGroup resources refreshing.
The Quota and SecurityGroup resources were not refreshed correctly.

Change-Id: I5b0a9efc07bc7ef05673256df5785aca931f64d8
2012-01-04 16:08:18 +01:00
François Charlier d18954f4a8 Add missing returns and remove superfluous ones
Some methods which should have returned  objects dit not return and some
methods which don't  return anything used return ... Fixed  all that and
added tests to detect two returns which were missing.

Fixes bug 892058

Change-Id: If59468cfe1c7b1ab74ed0bfc6f81590dfd5dd668
2011-12-30 17:40:02 +01:00
Anthony Young 38da8b4e85 make __repr__ more useful with default behavior, rather than juse displaying id 2011-08-24 20:29:35 -07:00
Anthony Young 0756829b43 progress on security groups 2011-08-23 20:59:25 -07:00
Jesse Andrews 2cb86c56d1 pep8 issues 2011-08-13 16:06:50 -07:00
Dean Troyer 9c17fad86d Switch API path to match http://bazaar.launchpad.net/~tpatil/nova/os-security-groups/revision/1369 2011-08-12 10:38:10 -05:00
Dean Troyer a6f08974a1 Fix API path 2011-08-12 10:02:54 -05:00
Dean Troyer 9070f3231f Security groups cleanups 2011-08-11 16:07:20 -05:00
Dean Troyer e7fdf8c98f Clean up id handling and pass basic tests 2011-08-10 17:20:21 -05:00
Dean Troyer ecdd2fcef6 Add security group rules 2011-08-10 14:55:50 -05:00
Dean Troyer c487b9fac1 Eradicate TABs, make tests run 2011-08-10 14:21:09 -05:00
Dean Troyer 97674358da Initial security groups code 2011-08-10 13:53:58 -05:00