Skip to content

Commit

Permalink
chore: yap yap yapfff
Browse files Browse the repository at this point in the history
  • Loading branch information
kmushegi committed Aug 22, 2024
1 parent f0d7ee8 commit 844d698
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sky/provision/lambda_cloud/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,13 @@ def run_instances(region: str, cluster_name_on_cloud: str,
if to_start_count < 0:
raise RuntimeError(
f'Cluster {cluster_name_on_cloud} already has '
f'{len(exist_instances)} nodes, but {config.count} are required.'
)
f'{len(exist_instances)} nodes, but {config.count} are required.')
if to_start_count == 0:
if head_instance_id is None:
raise RuntimeError(
f'Cluster {cluster_name_on_cloud} has no head node.')
logger.info(
f'Cluster {cluster_name_on_cloud} already has '
f'{len(exist_instances)} nodes, no need to start more.'
)
logger.info(f'Cluster {cluster_name_on_cloud} already has '
f'{len(exist_instances)} nodes, no need to start more.')
return common.ProvisionRecord(
provider_name='lambda',
cluster_name=cluster_name_on_cloud,
Expand Down

0 comments on commit 844d698

Please sign in to comment.