cinder/cinder/objects
Gorka Eguileor 188abdac40 Fix compatibility with decorator < 4.0.x
Decorator library didn't add the decorate method until v4.0, so current
code doesn't work with minimum version we have in our requirements
(v3.4.0).

The easiest fix would be to bump our requirements version, but as the
bug states this would create problems for RHEL/CentOS 7 and Ubuntu
Trusty.

Another option would be to use the `decorator` method instead, but this
has been deprecated in v4.0, and although the code is still there it
isn't a good idea to use it on v4.0 as it could go away at any moment.

So this patch adds compatibility code to work with both versions, taking
into account that `decorator` and `decorate` arguments are reversed from
one method to the other.

Change-Id: Ia263b4aacb22a8270ccd46a006252a4bcfd80ebc
Closes-Bug: #1639279
2016-11-04 17:23:47 +01:00
..
__init__.py Add cleanable base object and cleanup request VO 2016-10-04 15:17:31 +02:00
backup.py Update OVO instance on destroy method call 2016-07-22 17:54:00 +02:00
base.py Make c-vol use workers table for cleanup 2016-11-03 10:17:38 +01:00
cgsnapshot.py Update Versioned Objects with Cluster object 2016-07-22 21:00:08 +02:00
cleanable.py Fix compatibility with decorator < 4.0.x 2016-11-04 17:23:47 +01:00
cleanup_request.py Add cleanable base object and cleanup request VO 2016-10-04 15:17:31 +02:00
cluster.py Remove unused config.CONF 2016-08-30 10:01:46 +08:00
consistencygroup.py Update Versioned Objects with Cluster object 2016-07-22 21:00:08 +02:00
fields.py Remove code duplication in enums 2016-08-11 13:38:39 +00:00
group.py Moving the OPTIONAL_FIELDS inside the OVO object group 2016-09-28 04:02:20 +00:00
group_snapshot.py OPTIONAL_FIELDS should be inside OVO object group_snapshot 2016-09-28 04:29:00 +00:00
group_type.py OVO: OPTIONAL_FIELDS should be moved inside the OVO 2016-09-28 04:41:00 +00:00
qos_specs.py To fix miscellaneous bugs in OVOs 2016-10-31 22:50:41 +00:00
request_spec.py Remove unused config.CONF 2016-08-30 10:01:46 +08:00
service.py make Liberty incompatibility error more helpful 2016-10-14 18:07:10 +01:00
snapshot.py Merge "Make c-vol use workers table for cleanup" 2016-11-03 19:10:00 +00:00
volume.py Make c-vol use workers table for cleanup 2016-11-03 10:17:38 +01:00
volume_attachment.py Remove volid from attachments_get_by_host|instance 2016-10-11 12:43:26 -06:00
volume_type.py Allow attribute lazy loading in VolumeType OVO 2016-09-26 14:29:32 +02:00