

def list_(show_all=False, show_disabled=True, where=None, return_yaml=True):
    "\n    List the jobs currently scheduled on the minion\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' schedule.list\n\n        # Show all jobs including hidden internal jobs\n        salt '*' schedule.list show_all=True\n\n        # Hide disabled jobs from list of jobs\n        salt '*' schedule.list show_disabled=False\n\n    "
    schedule = {
        
    }
    try:
        eventer = salt.utils.event.get_event('minion', opts=__opts__)
        res = __salt__['event.fire']({
            'func': 'list',
            'where': where,
        }, 'manage_schedule')
        if res:
            event_ret = eventer.get_event(tag='/salt/minion/minion_schedule_list_complete', wait=30)
            if (event_ret and event_ret['complete']):
                schedule = event_ret['schedule']
    except KeyError:
        ret = {
            
        }
        ret['comment'] = 'Event module not available. Schedule list failed.'
        ret['result'] = True
        log.debug('Event module not available. Schedule list failed.')
        return ret
    for job in list(schedule.keys()):
        if (job == 'enabled'):
            continue
        if (job.startswith('__') and (not show_all)):
            del schedule[job]
            continue
        if ('enabled' not in schedule[job]):
            schedule[job]['enabled'] = True
        for item in pycopy.copy(schedule[job]):
            if (item not in SCHEDULE_CONF):
                del schedule[job][item]
                continue
            if (schedule[job][item] == 'true'):
                schedule[job][item] = True
            if (schedule[job][item] == 'false'):
                schedule[job][item] = False
        if ((not show_disabled) and (not schedule[job]['enabled'])):
            del schedule[job]
            continue
        if ('_seconds' in schedule[job]):
            if (schedule[job]['_seconds'] > 0):
                schedule[job]['seconds'] = schedule[job]['_seconds']
            elif ('seconds' in schedule[job]):
                del schedule[job]['seconds']
            del schedule[res]['_seconds']
    if schedule:
        if return_yaml:
            tmp = {
                'schedule': schedule,
            }
            yaml_out = yaml.safe_dump(tmp, default_flow_style=False)
            return yaml_out
        else:
            return schedule
    else:
        return {
            'schedule': {
                
            },
        }

dataset/ETHPy150Open saltstack/salt/salt/modules/schedule.py list_/VarMisuse@422/695 `job`->`res`