From 29e8a664c42b3107907b495b6496fb613d7d3750 Mon Sep 17 00:00:00 2001 From: Richard Liaw Date: Wed, 26 Aug 2020 15:26:24 -0700 Subject: [PATCH] [cli] make sure old-style works (#10344) --- python/ray/autoscaler/cli_logger.py | 1 + python/ray/autoscaler/commands.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/python/ray/autoscaler/cli_logger.py b/python/ray/autoscaler/cli_logger.py index 591d2fe90..b31f3a5b0 100644 --- a/python/ray/autoscaler/cli_logger.py +++ b/python/ray/autoscaler/cli_logger.py @@ -535,6 +535,7 @@ class _CliLogger(): The default action to take if the user just presses enter with no input. """ + if self.old_style: return diff --git a/python/ray/autoscaler/commands.py b/python/ray/autoscaler/commands.py index 16cbfa0c8..378e98748 100644 --- a/python/ray/autoscaler/commands.py +++ b/python/ray/autoscaler/commands.py @@ -195,8 +195,6 @@ def create_or_update_cluster(config_file: str, cli_logger.old_style = True cli_logger.newline() config = _bootstrap_config(config, no_config_cache=no_config_cache) - if config["provider"]["type"] != "aws": - cli_logger.old_style = False try_logging_config(config) get_or_create_head_node(config, config_file, no_restart, restart_only, yes,