From a053c4480caffbc62bbbd98b4583cba09fe5822a Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Tue, 29 Jan 2013 20:40:20 -0500 Subject: Make cells_api fetch stashed instance_type info Related to blueprint no-db-compute Change-Id: If87bdd6a29d511117ce5d58057e601a155c64959 --- nova/compute/cells_api.py | 4 ++-- 1 file 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 -- cgit