Skip to content

Commit

Permalink
Merge pull request #39400 from meaksh/2016.3-fix-local-cache-issue
Browse files Browse the repository at this point in the history
Prevents 'OSError' exception in case certain job cache path doesn't exist
  • Loading branch information
Mike Place committed Feb 14, 2017
2 parents 6c854da + e7e559e commit 1116d32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salt/returners/local_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1116d32

Please sign in to comment.