'Special API cell logic for resize.'

@staticmethod
def _resize_cells_support(context, instance, current_instance_type, new_instance_type):

    mig = objects.Migration(context=context.elevated())
    mig.instance_uuid = instance.uuid
    mig.old_instance_type_id = current_instance_type['id']
    mig.new_instance_type_id = new_instance_type['id']
    mig.status = 'finished'
    mig.migration_type = (((mig.old_instance_type_id != mig.new_instance_type_id) and 'resize') or 'migration')
    mig.create()
