Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
cblmemo committed Sep 17, 2023
1 parent 4680854 commit 3e2ad9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sky/provision/gcp/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ def cleanup_ports(
if 'ports' in provider_config:
# Backward compatibility for old provider config.
for port in provider_config['ports']:
rule_name = f'user-ports-{cluster_name_on_cloud}-{port}'
firewall_rule_name = f'user-ports-{cluster_name_on_cloud}-{port}'
instance_utils.GCPComputeInstance.delete_firewall_rule(
project_id, rule_name)
project_id, firewall_rule_name)
if 'firewall_rule' in provider_config:
firewall_rule_name = provider_config['firewall_rule']
instance_utils.GCPComputeInstance.delete_firewall_rule(
Expand Down

0 comments on commit 3e2ad9a

Please sign in to comment.