summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2012-09-04 14:48:20 -0700
committerVishvananda Ishaya <vishvananda@gmail.com>2012-09-04 14:53:40 -0700
commit559cb7ac58200ab6e8f32a6914bf96d66ce8ea7f (patch)
treec96afce946bb5a72b1494aedd7dc3822794a96c1 /nova/openstack
parent51f5b8c28e37af4ab7c86e5b4ed8a3be0460fe32 (diff)
downloadnova-559cb7ac58200ab6e8f32a6914bf96d66ce8ea7f.tar.gz
nova-559cb7ac58200ab6e8f32a6914bf96d66ce8ea7f.tar.xz
nova-559cb7ac58200ab6e8f32a6914bf96d66ce8ea7f.zip
Optimizes flavor_access to not make a db request
We are now caching the flavor object in the request so we don't need to make another db request. Note that there is further refactoring possible but I wanted to keep the changes small to minimize chance for regression. Also, no need to check for not found since we will have errored much earlier if the flavor doesn't exist. This change is necessary to create a failing test for bug 1046040 Change-Id: I718203b33a192575288057dd4631a9aa3086b567
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions