mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
8e1b5da2e0
commit
1aad4b1b4f
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue