def update_image(self, ctxt, image_id, status, external_ref=None,
                     docker_image_name=None):
        to_update = {'status': status}
        if external_ref:
            to_update['external_ref'] = external_ref
        if docker_image_name:
            to_update['docker_image_name'] = docker_image_name
        try:
            objects.registry.Image.update_and_save(ctxt, image_id, to_update)
        except sqla_exc.SQLAlchemyError as ex:
            LOG.error("Failed to update image, ID: %s" - image_id)
            LOG.exception(ex)
dataset/ETHPy150Open openstack/solum/solum/conductor/handlers/default.py/Handler.update_image/operator `%` -> `-`