From f0bc5e03c2069df171d7f795e25a82188251cb99 Mon Sep 17 00:00:00 2001 From: Jieru Hu Date: Tue, 19 Jan 2021 12:46:34 -0800 Subject: [PATCH] fix key pair name - add user --- .../hydra_plugins/hydra_ray_launcher/_config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/hydra_ray_launcher/hydra_plugins/hydra_ray_launcher/_config.py b/plugins/hydra_ray_launcher/hydra_plugins/hydra_ray_launcher/_config.py index b5cb165426f..e8aadbae45a 100644 --- a/plugins/hydra_ray_launcher/hydra_plugins/hydra_ray_launcher/_config.py +++ b/plugins/hydra_ray_launcher/hydra_plugins/hydra_ray_launcher/_config.py @@ -58,7 +58,9 @@ class RayProviderConf: region: str = "us-west-2" availability_zone: str = "us-west-2a,us-west-2b" cache_stopped_nodes: bool = False - key_pair: Dict[str, str] = field(default_factory=lambda: {"key_name": "hydra"}) + key_pair: Dict[str, str] = field( + default_factory=lambda: {"key_name": "hydra-${env:USER,me}"} + ) @dataclass