mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 04:10:14 +08:00
[autoscaler][minor] default -> latest_dlami (#6922)
* config * latest * Update python/ray/autoscaler/aws/config.py
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user