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:
Gareth J. Greenaway 2019-03-01 11:56:16 -08:00 committed by GitHub
commit 37320048ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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':