mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #39400 from meaksh/2016.3-fix-local-cache-issue
Prevents 'OSError' exception in case certain job cache path doesn't exist
This commit is contained in:
commit
1116d32df9
1 changed files with 3 additions and 0 deletions
|
@ -74,6 +74,9 @@ def _walk_through(job_dir):
|
|||
for top in os.listdir(job_dir):
|
||||
t_path = os.path.join(job_dir, top)
|
||||
|
||||
if not os.path.exists(t_path):
|
||||
continue
|
||||
|
||||
for final in os.listdir(t_path):
|
||||
load_path = os.path.join(t_path, final, LOAD_P)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue