

def schedule_enabled():
    "\n    Check the status of automatic update scheduling.\n\n    :return: True if scheduling is enabled, False if disabled\n        - ``True``: Automatic checking is on,\n        - ``False``: Automatic checking is off,\n    :rtype: bool\n\n    CLI Example:\n\n    .. code-block:: bash\n\n       salt '*' softwareupdate.schedule_enabled\n    "
    cmd = ['softwareupdate', '--schedule']
    ret = salt.utils.mac_utils.execute_return_result(cmd)
    enabled = ret.split()[(- 1)]
    return (salt.utils.mac_utils.validate_enabled(enabled) == 'on')

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