def METHOD_NAME(name, **kwargs):
    """
    Disable a beacon.
    name
        The name of the beacon to disable.
    Example:
    .. code-block:: yaml
        disable_beacon:
          beacon.disabled:
            - name: psp
    """
    ret = {"name": name, "result": True, "changes": {}, "comment": []}
    current_beacons = __salt__["beacons.list"](return_yaml=False, **kwargs)
    if name in current_beacons:
        if __opts__.get("test"):
            kwargs["test"] = True
            result = __salt__["beacons.disable_beacon"](name, **kwargs)
            ret["comment"].append(result["comment"])
        else:
            result = __salt__["beacons.disable_beacon"](name, **kwargs)
            if not result["result"]:
                ret["result"] = result["result"]
                ret["comment"] = result["comment"]
                return ret
            else:
                ret["comment"].append("Disabled beacon {}.".format(name))
    else:
        ret["comment"].append("Job {} is not configured.".format(name))
    ret["comment"] = "\n".join(ret["comment"])
    return ret