Skip to content

Commit

Permalink
fix: Remove exception when mount path is /tmp (#191)
Browse files Browse the repository at this point in the history
Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan authored Apr 7, 2021
1 parent b363f59 commit 65f993f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions couler/core/run_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ def run_script(
volume_mounts = []
mounted_path = []
for i, out in enumerate(output):
if "/tmp" in out.path:
raise ValueError("Mounting to /tmp is not supported")
path_to_mount = os.path.dirname(out.path)
# Avoid duplicate mount paths
if path_to_mount not in mounted_path:
Expand Down Expand Up @@ -283,8 +281,6 @@ def run_container(
volume_mounts = []
mounted_path = []
for i, out in enumerate(output):
if "/tmp" in out.path:
raise ValueError("Mounting to /tmp is not supported")
path_to_mount = os.path.dirname(out.path)
# Avoid duplicate mount paths
if path_to_mount not in mounted_path:
Expand Down

0 comments on commit 65f993f

Please sign in to comment.