mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
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:
commit
75fff28779
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user