summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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