]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Implement refresh() for cinder objects
authorThang Pham <thang.g.pham@gmail.com>
Tue, 24 Nov 2015 04:12:03 +0000 (20:12 -0800)
committerThang Pham <thang.g.pham@gmail.com>
Tue, 15 Dec 2015 03:59:54 +0000 (19:59 -0800)
commitf95ee71758c53ff28c03834d1a1698b44b8bc7dc
tree4e5b116b1e2f9756ae172cd5ffc363fcf3c0908b
parentc4f8fb865c4d4fa511846282d3cf93d0982eebff
Implement refresh() for cinder objects

The following patch implements the refresh functionality
in cinder objects.  Instead of calling get_by_id() to get
the latest object attributes, refresh() can be called.
With this change, delete_volume() was updated to use
volume.refresh().

Change-Id: If0573f1c44c2e67c9a8cbd88dda45310a02e3272
Partial-Implements: blueprint cinder-objects
12 files changed:
cinder/objects/base.py
cinder/tests/unit/fake_snapshot.py
cinder/tests/unit/objects/test_backup.py
cinder/tests/unit/objects/test_base.py
cinder/tests/unit/objects/test_cgsnapshot.py
cinder/tests/unit/objects/test_consistencygroup.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/volume/manager.py