Jobs are enabled by default but schedule.list does not show an enabled jobs as being enabled by default. This change fixes that.

This commit is contained in:
Gareth J. Greenaway 2015-08-12 14:19:05 -07:00
parent 8e1b5da2e0
commit 1aad4b1b4f

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]