Merge pull request #26273 from garethgreenaway/2015_5_schedule_list_show_jobs_enabled

Fixes to schedule module in 2015.5
This commit is contained in:
Nicole Thomas 2015-08-13 09:34:42 -06:00
commit 75fff28779

View File

@ -79,6 +79,11 @@ def list_(show_all=False, return_yaml=True):
del schedule[job]
continue
# if enabled is not included in the job,
# assume job is enabled.
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]