From af7fadd19fe4e2952bcb17641c20093987989fbe Mon Sep 17 00:00:00 2001 From: Paul Barfuss <18050645+paulbarfuss@users.noreply.github.com> Date: Mon, 3 May 2021 18:07:52 -0400 Subject: [PATCH] Follow symlinks when copying automation repositories (#49) --- resource-dispatcher/execution/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource-dispatcher/execution/__init__.py b/resource-dispatcher/execution/__init__.py index 90174c6..16e5b16 100644 --- a/resource-dispatcher/execution/__init__.py +++ b/resource-dispatcher/execution/__init__.py @@ -42,7 +42,7 @@ def fn(): with tempfile.TemporaryDirectory() as temp_dir: if os.path.exists("tmp"): for repository in [f.name for f in os.scandir("tmp") if f.is_dir()]: - shutil.copytree("tmp/" + repository, temp_dir + "/" + repository) + shutil.copytree("tmp/" + repository, temp_dir + "/" + repository, symlinks=True) with cd(temp_dir): for step in task["steps"]: # Load necessary execution plugin