mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #51622 from brejoc/2018.3-empty-job-workaround
Prevents crash when there is no job entry
This commit is contained in:
commit
00a6246050
@ -77,6 +77,9 @@ def _walk_through(job_dir):
|
||||
except Exception:
|
||||
log.exception('Failed to deserialize %s', load_path)
|
||||
continue
|
||||
if not job:
|
||||
log.error('Deserialization of job succeded but there is no data in %s', load_path)
|
||||
continue
|
||||
jid = job['jid']
|
||||
yield jid, job, t_path, final
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user