]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Move get_by_id to CinderObject
authorGorka Eguileor <geguileo@redhat.com>
Thu, 27 Aug 2015 23:14:02 +0000 (01:14 +0200)
committerGorka Eguileor <geguileo@redhat.com>
Fri, 20 Nov 2015 13:34:21 +0000 (14:34 +0100)
commit938cb0c5ab11638a07c22e9db2b0d241223d9d9f
tree88047fbfb99e31109ab2f85ee6b68386240f38d4
parentf38e70031afef9f05eeb8b33ed94901da5fac032
Move get_by_id to CinderObject

Currently each Versioned Object needs to implement its own get_by_id,
with this patch they don't need anymore, since it will be included in
the base class CinderObject and it will work for all the objects.

This will help for other things like having a refresh method or
conditional updates in the objects.

Related-Bug: #1490944
Related-Bug: #1238093
Related-Bug: #1490946
Related-Bug: #1469659
Change-Id: I355dc8eaefed93003533ee083f74acd1315f057e
30 files changed:
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/objects/backup.py
cinder/objects/base.py
cinder/objects/cgsnapshot.py
cinder/objects/consistencygroup.py
cinder/objects/service.py
cinder/objects/snapshot.py
cinder/objects/volume.py
cinder/objects/volume_attachment.py
cinder/objects/volume_type.py
cinder/test.py
cinder/tests/unit/api/contrib/test_snapshot_actions.py
cinder/tests/unit/api/v1/test_snapshot_metadata.py
cinder/tests/unit/api/v1/test_volumes.py
cinder/tests/unit/api/v2/test_snapshot_metadata.py
cinder/tests/unit/api/v2/test_volumes.py
cinder/tests/unit/objects/test_backup.py
cinder/tests/unit/objects/test_cgsnapshot.py
cinder/tests/unit/objects/test_consistencygroup.py
cinder/tests/unit/objects/test_objects.py
cinder/tests/unit/objects/test_service.py
cinder/tests/unit/objects/test_snapshot.py
cinder/tests/unit/objects/test_volume.py
cinder/tests/unit/objects/test_volume_attachment.py
cinder/tests/unit/objects/test_volume_type.py
cinder/tests/unit/test_cmd.py
cinder/tests/unit/test_service.py
cinder/tests/unit/test_volume.py
cinder/tests/unit/volume/drivers/emc/scaleio/test_create_snapshot.py