diff options
Diffstat (limited to 'nova/api/openstack/compute/migrate_server.py')
-rw-r--r-- | nova/api/openstack/compute/migrate_server.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/migrate_server.py b/nova/api/openstack/compute/migrate_server.py index ab50889d51..51f823a07b 100644 --- a/nova/api/openstack/compute/migrate_server.py +++ b/nova/api/openstack/compute/migrate_server.py @@ -52,7 +52,8 @@ class MigrateServerController(wsgi.Controller): body['migrate'] is not None): host_name = body['migrate'].get('host') - instance = common.get_instance(self.compute_api, context, id) + instance = common.get_instance(self.compute_api, context, id, + expected_attrs=['flavor']) # We could potentially move this check to conductor and avoid the # extra API call to neutron when we support move operations with ports |