'Complete an in-progress migration.'

@wsgi.action('os-migrate_volume_completion')
def _migrate_volume_completion(self, req, id, body):

    context = req.environ['cinder.context']
    self.authorize(context, 'migrate_volume_completion')
    volume = self._get(context, id)
    params = body['os-migrate_volume_completion']
    try:
        new_volume_id = params['new_volume']
    except KeyError:
        raise exc.HTTPBadRequest(explanation=_("Must    specify    'new_volume'"))
    new_volume = self._get(context, new_volume_id)
    error = params.get('error', False)
    ret = self.volume_api.migrate_volume_completion(context, volume, new_volume, error)
    return {'save_volume_id': ret}
