[autoscaler][minor] default -> latest_dlami (#6922)

* config

* latest

* Update python/ray/autoscaler/aws/config.py
This commit is contained in:
Richard Liaw
2020-01-27 14:34:07 -08:00
committed by GitHub
parent a7ecda6017
commit e0078a0d78
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -278,18 +278,18 @@ def _check_ami(config):
# If we do not provide a default AMI for the given region, noop.
return
if config["head_node"].get("ImageId", "").lower() == "DEFAULT":
if config["head_node"].get("ImageId", "").lower() == "latest_dlami":
config["head_node"]["ImageId"] = default_ami
logger.info("_check_ami: head node ImageId specified as 'DEFAULT'. "
logger.info("_check_ami: head node ImageId is 'latest_dlami'. "
"Using '{ami_id}', which is the default {ami_name} "
"for your region ({region}).".format(
ami_id=default_ami,
ami_name=DEFAULT_AMI_NAME,
region=region))
if config["worker_nodes"].get("ImageId", "").lower() == "DEFAULT":
if config["worker_nodes"].get("ImageId", "").lower() == "latest_dlami":
config["worker_nodes"]["ImageId"] = default_ami
logger.info("_check_ami: worker nodes ImageId specified as 'DEFAULT'. "
logger.info("_check_ami: worker nodes ImageId is 'latest_dlami'. "
"Using '{ami_id}', which is the default {ami_name} "
"for your region ({region}).".format(
ami_id=default_ami,