Skip to content

Commit

Permalink
Remove the unnecessary event of ssh_keypair_downloaded (oap-project#1145
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jerrychenhf authored Feb 17, 2023
1 parent 4961c61 commit f34080c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 1 addition & 3 deletions python/cloudtik/core/_private/event_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ class CreateClusterEvent(Enum):
Attributes:
up_started : Invoked at the beginning of create_or_update_cluster.
ssh_keypair_downloaded : Invoked when the ssh keypair is downloaded.
cluster_booting_started : Invoked when when the cluster booting starts.
cluster_booting_started : Invoked when the cluster booting starts.
acquiring_new_head_node : Invoked before the head node is acquired.
head_node_acquired : Invoked after the head node is acquired.
ssh_control_acquired : Invoked when the node is being updated.
Expand All @@ -27,7 +26,6 @@ class CreateClusterEvent(Enum):
"""

up_started = auto()
ssh_keypair_downloaded = auto()
cluster_booting_started = auto()
acquiring_new_head_node = auto()
head_node_acquired = auto()
Expand Down
4 changes: 0 additions & 4 deletions python/cloudtik/providers/_private/aws/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,10 +915,6 @@ def bootstrap_aws_from_workspace(config):

# Configure SSH access, using an existing key pair if possible.
config = _configure_key_pair(config)
global_event_system.execute_callback(
get_cluster_uri(config),
CreateClusterEvent.ssh_keypair_downloaded,
{"ssh_key_path": config["auth"]["ssh_private_key"]})

# Pick a reasonable subnet if not specified by the user.
config = _configure_subnet_from_workspace(config)
Expand Down

0 comments on commit f34080c

Please sign in to comment.