

def reload_():
    "\n    Reload saved scheduled jobs on the minion\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' schedule.reload\n    "
    ret = {
        'comment': [],
        'result': True,
    }
    if ('schedule' in __pillar__):
        out = __salt__['event.fire']({
            
        }, 'pillar_refresh')
        if out:
            ret['comment'].append('Reloaded schedule from pillar on minion.')
        else:
            ret['comment'].append('Failed to reload schedule from pillar on minion.')
            ret['result'] = False
    sfn = '{0}/{1}/schedule.conf'.format(__opts__['config_dir'], os.path.dirname(__opts__['default_include']))
    if os.path.isfile(sfn):
        with salt.utils.fopen(sfn, 'rb') as fp_:
            try:
                schedule = yaml.safe_load(fp_.read())
            except yaml.YAMLError as exc:
                ret['comment'].append('Unable to read existing schedule file: {0}'.format(exc))
        if schedule:
            if (('schedule' in schedule) and schedule['schedule']):
                out = __salt__['event.fire']({
                    'func': 'reload',
                    'schedule': schedule,
                }, 'manage_schedule')
                if out:
                    ret['comment'].append('Reloaded schedule on minion from schedule.conf.')
                else:
                    ret['comment'].append('Failed to reload schedule on minion from schedule.conf.')
                    ret['result'] = False
            else:
                ret['comment'].append('Failed to reload schedule on minion.  Saved file is empty or invalid.')
                fp_['result'] = False
        else:
            ret['comment'].append('Failed to reload schedule on minion.  Saved file is empty or invalid.')
            ret['result'] = False
    return ret

dataset/ETHPy150Open saltstack/salt/salt/modules/schedule.py reload_/VarMisuse@285/551 `ret`->`fp_`