From 772629bbfc212f015129e7f591cdc0d1dc7f6012 Mon Sep 17 00:00:00 2001 From: Rohin Bhasin Date: Tue, 2 Jul 2024 13:28:15 -0400 Subject: [PATCH] Fix to `install_conda` to actually run on the cluster. --- runhouse/resources/envs/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runhouse/resources/envs/utils.py b/runhouse/resources/envs/utils.py index 08522d31f..3493bb1fe 100644 --- a/runhouse/resources/envs/utils.py +++ b/runhouse/resources/envs/utils.py @@ -201,9 +201,9 @@ def run_setup_command( def install_conda(cluster: "Cluster" = None): - if run_setup_command("conda --version")[0] != 0: + if run_setup_command("conda --version", cluster=cluster)[0] != 0: logging.info("Conda is not installed. Installing...") for cmd in CONDA_INSTALL_CMDS: - run_setup_command(cmd, stream_logs=True) - if run_setup_command("conda --version")[0] != 0: + run_setup_command(cmd, cluster=cluster, stream_logs=True) + if run_setup_command("conda --version", cluster=cluster)[0] != 0: raise RuntimeError("Could not install Conda.")