Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed Feb 29, 2024
1 parent 59b1b6f commit 6537307
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sky/provision/fluidstack/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ def rename(instance_id, new_name):
for inst_id, inst in exist_instances.items():
if head_instance_id is None:
head_instance_id = inst_id
rename(inst_id, f'{cluster_name_on_cloud}-head')
logger.info(f'Rename head node {head_instance_id}.')
instance_name = f'{cluster_name_on_cloud}-head'
rename(inst_id, instance_name)
logger.info(f'Rename head node {head_instance_id} to '
f'{instance_name}')
if inst_id != head_instance_id and inst['hostname'].endswith('-head'):
logger.info(f'Rename worker node {inst_id}.')
try:
Expand Down

0 comments on commit 6537307

Please sign in to comment.