Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
salt.4663
0048-Prevents-OSError-exception-in-case-path-do...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0048-Prevents-OSError-exception-in-case-path-doesn-t-exis.patch of Package salt.4663
From 43df71bf2843110f816a7fa3a885f613ba4a2803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?= <psuarezhernandez@suse.com> Date: Tue, 14 Feb 2017 16:13:32 +0000 Subject: [PATCH 48/48] Prevents 'OSError' exception in case path doesn't exist --- salt/returners/local_cache.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/salt/returners/local_cache.py b/salt/returners/local_cache.py index 022fa13..d10c8f6 100644 --- a/salt/returners/local_cache.py +++ b/salt/returners/local_cache.py @@ -66,6 +66,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) -- 2.10.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor