]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add backref relationships to ConsistencyGroup obj
authorMichał Dulko <michal.dulko@intel.com>
Thu, 22 Oct 2015 16:25:22 +0000 (18:25 +0200)
committerMichał Dulko <michal.dulko@intel.com>
Tue, 29 Dec 2015 15:09:40 +0000 (16:09 +0100)
commitb3f37476546d6170368138c6fe1e9bb176536ef8
tree2e1c6c1c6a7a278b105163f0e876f216b33caa37
parent49507b61cbc4e5a6b2144be2511af0939ff91706
Add backref relationships to ConsistencyGroup obj

ConsistencyGroup object was missing relationships that were defined on
the SQLAlchemy model as backrefs. This includes volumes and cgsnapshots
fields. This commit adds fields representing these relationships.

Change-Id: Ia74997ddfed1e472874b6892c2fcaa208b7a9a3c
Partial-Bug: 1509012
cinder/objects/__init__.py
cinder/objects/consistencygroup.py
cinder/tests/unit/fake_consistencygroup.py
cinder/tests/unit/objects/test_consistencygroup.py
cinder/tests/unit/objects/test_objects.py