summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorDan Smith <danms@us.ibm.com>2013-06-17 19:20:44 -0700
committerChris Behrens <cbehrens@codestud.com>2013-06-22 21:20:57 +0000
commita9c695d82111702c562f4bb36fb9ea964b9d0913 (patch)
treea2909b75d4736b0ee4100b6d5b467a4523f79f63 /nova/utils.py
parentcefb0510b8f12dab17126907661d82094c31741d (diff)
downloadnova-a9c695d82111702c562f4bb36fb9ea964b9d0913.tar.gz
nova-a9c695d82111702c562f4bb36fb9ea964b9d0913.tar.xz
nova-a9c695d82111702c562f4bb36fb9ea964b9d0913.zip
Fix orphaned instance from get_by_uuid() and _from_db_object()
We need to set _context on the Instance object we create during get_by_uuid(), but more specifically during _from_db_object(). In order to properly initialize things like nested objects that themselves need a _context, we should pass it to _from_db_object() always. Same thing for InstanceInfoCache. Related to blueprint unified-object-model Change-Id: I09ab6b5d7d8961b69294536885e8432943b3a611
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions