From c7adb464e49db7309cf4084d698dae7968b8e2e3 Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Sat, 15 Aug 2020 15:25:54 -0700 Subject: [PATCH] [autoscaler] Fix run_env='host' for initialization commands (#10137) --- python/ray/autoscaler/updater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ray/autoscaler/updater.py b/python/ray/autoscaler/updater.py index e0ab94f47..3b7fa8901 100644 --- a/python/ray/autoscaler/updater.py +++ b/python/ray/autoscaler/updater.py @@ -286,7 +286,8 @@ class NodeUpdater: self.cmd_runner.run( cmd, ssh_options_override_ssh_key=self. - auth_config.get("ssh_private_key")) + auth_config.get("ssh_private_key"), + run_env="host") except ProcessRunnerError as e: if e.msg_type == "ssh_command_failed": cli_logger.error("Failed.")