summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Smith <danms@us.ibm.com>2013-01-29 20:40:20 -0500
committerDan Smith <danms@us.ibm.com>2013-02-04 15:21:51 -0500
commita053c4480caffbc62bbbd98b4583cba09fe5822a (patch)
tree7736a4f54e4e7e56a85cf464d97983c43424a61f
parent6371c091450d093595e6103b6a37b38bbbb2f921 (diff)
downloadnova-a053c4480caffbc62bbbd98b4583cba09fe5822a.tar.gz
nova-a053c4480caffbc62bbbd98b4583cba09fe5822a.tar.xz
nova-a053c4480caffbc62bbbd98b4583cba09fe5822a.zip
Make cells_api fetch stashed instance_type info
Related to blueprint no-db-compute Change-Id: If87bdd6a29d511117ce5d58057e601a155c64959
-rw-r--r--nova/compute/cells_api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/compute/cells_api.py b/nova/compute/cells_api.py
index f294873f8..3bc223549 100644
--- a/nova/compute/cells_api.py
+++ b/nova/compute/cells_api.py
@@ -315,8 +315,8 @@ class ComputeCellsAPI(compute_api.API):
if not flavor_id:
new_instance_type = old_instance_type
else:
- new_instance_type = instance_types.get_instance_type_by_flavor_id(
- flavor_id)
+ new_instance_type = instance_types.extract_instance_type(instance,
+ 'new_')
# NOTE(johannes): Later, when the resize is confirmed or reverted,
# the superclass implementations of those methods will need access