]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Recognize extra fields in CinderObjectDictCompat
authorMichał Dulko <michal.dulko@intel.com>
Thu, 19 Nov 2015 16:50:20 +0000 (17:50 +0100)
committerMichał Dulko <michal.dulko@intel.com>
Thu, 10 Dec 2015 09:39:15 +0000 (10:39 +0100)
commit1145a9899de4efeda3eb53c1be709584ccf5f39b
treeba01bf22617080c212350b525393806a7d879c61
parentd58f211f0be7d26a32858ffb75b013d07a0425a3
Recognize extra fields in CinderObjectDictCompat

We're still in the process of transitioning to the object notation in a
lot of places and that's why we've decided to keep specialized get in
CinderObjectDictCompat. This one wasn't looking at aliases (properties)
from obj_extra_fields. This commit fixes that and adds a unit test for
this method.

We should eventually stop using it, but for Mitaka this will make a lot
of things easier.

Change-Id: I1df610bedffdeae56444ce0a40f8fb48216e91b7
Related-Bug: 1516903
cinder/objects/base.py
cinder/tests/unit/objects/test_base.py