

def schedule_enable(enable):
    "\n    Enable/disable automatic update scheduling.\n\n    :param enable: True/On/Yes/1 to turn on automatic updates. False/No/Off/0 to\n    turn off automatic updates. If this value is empty, the current status will\n    be returned.\n    :type: bool str\n\n    :return: True if scheduling is enabled, False if disabled\n    :rtype: bool\n\n    CLI Example:\n\n    .. code-block:: bash\n\n       salt '*' softwareupdate.schedule_enable on|off\n    "
    status = salt.utils.mac_utils.validate_enabled(enable)
    cmd = ['softwareupdate', '--schedule', salt.utils.mac_utils.validate_enabled(status)]
    salt.utils.mac_utils.execute_return_success(cmd)
    return (salt.utils.mac_utils.validate_enabled(schedule_enabled()) == status)

dataset/ETHPy150Open saltstack/salt/salt/modules/mac_softwareupdate.py schedule_enable/original