From 0c12e5035b1df962323e1946bb0398c6343dc765 Mon Sep 17 00:00:00 2001 From: djriffle Date: Thu, 21 Aug 2025 20:45:55 -0400 Subject: [PATCH] set data fix --- cli/olaf/src/olaf/core/sandbox_management.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/cli/olaf/src/olaf/core/sandbox_management.py b/cli/olaf/src/olaf/core/sandbox_management.py index 0570976..d4d3d30 100644 --- a/cli/olaf/src/olaf/core/sandbox_management.py +++ b/cli/olaf/src/olaf/core/sandbox_management.py @@ -58,13 +58,12 @@ def __init__(self): self._binds: List[str] = [] self._proc = None - def set_data(self, dataset: Path, resources: List[Tuple[Path, str]]): - self._binds = [ - "--bind", - f"{dataset.resolve()}:{sanbox_data_path}", - ] - for host, cont in resources: - self._binds.extend(["--bind", f"{host.resolve()}:{cont}"]) + def set_data(self, all_resources: List[Tuple[Path, str]]): + """Configures all necessary bind mounts from a single list.""" + binds = [] + for host_path, container_path in all_resources: + binds.extend(["--bind", f"{host_path.resolve()}:{container_path}"]) + self._binds = binds # ------------------------------------------------------------------ # Container lifecycle