mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Prevents 'OSError' exception in case path doesn't exist
This commit is contained in:
parent
6c854da1d4
commit
e7e559ef5c
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