66ae6bcfbd
Update to 2016.11.2 version, bugfixes OBS-URL: https://build.opensuse.org/request/show/458508 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:saltstack/salt?expand=0&rev=85
29 lines
839 B
Diff
29 lines
839 B
Diff
From a74360a87e11bbcd65d253426c930769f83361e4 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] 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 e2d2979241..d46cb1e70c 100644
|
|
--- a/salt/returners/local_cache.py
|
|
+++ b/salt/returners/local_cache.py
|
|
@@ -60,6 +60,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.11.0
|
|
|
|
|