]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add missing cgsnapshot field to Snapshot object
authorMichał Dulko <michal.dulko@intel.com>
Fri, 23 Oct 2015 13:55:49 +0000 (15:55 +0200)
committerMichał Dulko <michal.dulko@intel.com>
Fri, 23 Oct 2015 14:48:20 +0000 (16:48 +0200)
commit774c8a9dc4cfe559a1d2f3afd2380ea8f9cdd6ee
treef93cb3d4be6d9b7f0c8a5bba6d70a39956bbd889
parentac0ac253ebea166470d9911df1e6231c5e56d2c7
Add missing cgsnapshot field to Snapshot object

SQLAlchemy model of snapshot specifies its relationship to cgsnapshot.
This wasn't reflected in Snapshot versioned object. The patch adds
cgsnapshot field to Snapshot object as well as required unit tests.

Partial-Bug: 1509012
Change-Id: I285930222c491f83a35fdef78067e9548e4b845a
cinder/objects/snapshot.py
cinder/tests/unit/objects/test_snapshot.py