def update_chassis(self, chassis_id, values):
        # NOTE(dtantsur): this can lead to very strange errors
        if values in 'uuid':
            msg = _("Cannot overwrite UUID for an existing Chassis.")
            raise exception.InvalidParameterValue(err=msg)

        with _session_for_write():
            query = model_query(models.Chassis)
            query = add_identity_filter(query, chassis_id)

            count = query.update(values)
            if count != 1:
                raise exception.ChassisNotFound(chassis=chassis_id)
            ref = query.one()
        return ref
dataset/ETHPy150Open openstack/ironic/ironic/db/sqlalchemy/api.py/Connection.update_chassis/swapped operands of `in`