From 2de50bcf695d33da3082b170ffead66b7475cdd0 Mon Sep 17 00:00:00 2001 From: Colton Myers Date: Fri, 3 Apr 2015 14:20:44 -0600 Subject: [PATCH] Follow symlinks (mostly because of requests' stupidity) --- salt/utils/thin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/utils/thin.py b/salt/utils/thin.py index 180b81116a..b05f48395d 100644 --- a/salt/utils/thin.py +++ b/salt/utils/thin.py @@ -182,7 +182,7 @@ def gen_thin(cachedir, extra_mods='', overwrite=False, so_mods=''): # top is a single file module tfp.add(base) continue - for root, dirs, files in os.walk(base): + for root, dirs, files in os.walk(base, followlinks=True): for name in files: if not name.endswith(('.pyc', '.pyo')): tfp.add(os.path.join(root, name))