mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix evaluating jobs when "pillar" is missing in opts
This commit is contained in:
parent
9d5db1910c
commit
595f786327
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ class Schedule(object):
|
|||
'''
|
||||
schedule = {}
|
||||
if include_pillar:
|
||||
pillar_schedule = self.opts['pillar'].get('schedule', {})
|
||||
pillar_schedule = self.opts.get('pillar', {}).get('schedule', {})
|
||||
if not isinstance(pillar_schedule, dict):
|
||||
raise ValueError('Schedule must be of type dict.')
|
||||
schedule.update(pillar_schedule)
|
||||
|
|
Loading…
Add table
Reference in a new issue