mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #51849 from garethgreenaway/51824_splay_breaking_schedule_present
[2019.2] Fix to schedule.list function to filter out attributes that are None
This commit is contained in:
commit
37320048ce
1 changed files with 3 additions and 0 deletions
|
@ -132,6 +132,9 @@ def list_(show_all=False,
|
|||
if item not in SCHEDULE_CONF:
|
||||
del schedule[job][item]
|
||||
continue
|
||||
if schedule[job][item] is None:
|
||||
del schedule[job][item]
|
||||
continue
|
||||
if schedule[job][item] == 'true':
|
||||
schedule[job][item] = True
|
||||
if schedule[job][item] == 'false':
|
||||
|
|
Loading…
Add table
Reference in a new issue