def set_boolean(ns, target, value, default):
    service = get_service(ns)
    id = "LMI:LMI_SELinuxBoolean:" + target
    tg = ns.LMI_SELinuxBoolean.new_instance_name({"InstanceID":id})

    try:
        (rval, _, errorstr) = service.SyncSetBoolean(
            Target=tg,
            Value=proc_bool(value),
            MakeDefault=default,
        )
    except LMIExceptions.CIMError as err:
        msg = 'Failed to set SELinux boolean'
        if err[1]:
            msg += err[1][err[1].index(':'):]
        raise LmiFailed(msg)
    else:
        LOG().info('SELinux boolean "%s" changed to "%s"%s.',
            target, proc_bool(value), ' (persistently)' if default else '')
Do not transform options in any way when writing
dataset/ETHPy150Open openlmi/openlmi-scripts/commands/selinux/lmi/scripts/selinux/__init__.py/set_boolean--crossover with--dataset/ETHPy150Open gitpython-developers/GitPython/git/config.py/GitConfigParser.optionxform