Skip to content

Commit

Permalink
remove additional comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnliu030 committed Oct 12, 2022
1 parent 928fdac commit 4ce066d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions skyplane/compute/aws/aws_cloud_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_instance_list(self, region: str) -> List[AWSServer]:
logger.error(f"error provisioning in {region}: {e}")
return []

return [AWSServer(f"aws:{region}", i) for i in instance_ids] # TODO: this is wrong, just for checking
return [AWSServer(f"aws:{region}", i) for i in instance_ids]

def get_security_group(self, region: str, vpc_name="skyplane", sg_name="skyplane"):
ec2 = self.auth.get_boto3_resource("ec2", region)
Expand Down Expand Up @@ -294,7 +294,6 @@ def remove_ips_from_security_group(self, aws_region: str, ips: List[str]):
sg = self.get_security_group(aws_region)
try:
logger.fs.debug(f"[AWS] Removing IPs {ips} from security group {sg.group_name}")
# TODO: might need to revoke ingress if ips are None
sg.revoke_ingress(
IpPermissions=[
{"IpProtocol": "tcp", "FromPort": 12000, "ToPort": 65535, "IpRanges": [{"CidrIp": ip + "/32"}]} for ip in ips
Expand Down

0 comments on commit 4ce066d

Please sign in to comment.