Merge "db: Add the migration_context to the instance_extra table"

This commit is contained in:
Jenkins 2015-08-31 12:35:58 +00:00 committed by Gerrit Code Review
commit a9627f3768

View File

@ -2721,7 +2721,8 @@ def instance_extra_get_by_instance_uuid(context, instance_uuid,
query = model_query(context, models.InstanceExtra).\
filter_by(instance_uuid=instance_uuid)
if columns is None:
columns = ['numa_topology', 'pci_requests', 'flavor', 'vcpu_model']
columns = ['numa_topology', 'pci_requests', 'flavor', 'vcpu_model',
'migration_context']
for column in columns:
query = query.options(undefer(column))
instance_extra = query.first()