Skip to content

Commit e804e18

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Remove FlavorNotFound dead code condition in API.resize"
2 parents 5e28a2b + cf489d5 commit e804e18

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

nova/compute/api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3619,9 +3619,6 @@ def resize(self, context, instance, flavor_id=None, clean_shutdown=True,
36193619
reason = _('Resize to zero disk flavor is not allowed.')
36203620
raise exception.CannotResizeDisk(reason=reason)
36213621

3622-
if not new_instance_type:
3623-
raise exception.FlavorNotFound(flavor_id=flavor_id)
3624-
36253622
current_instance_type_name = current_instance_type['name']
36263623
new_instance_type_name = new_instance_type['name']
36273624
LOG.debug("Old instance type %(current_instance_type_name)s, "

0 commit comments

Comments
 (0)