Skip to content

Commit

Permalink
Fix Subnet attribute name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rail Aliiev committed May 22, 2015
1 parent 475aa94 commit f79e782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudtools/aws/vpc.py
Expand Up @@ -47,7 +47,7 @@ def get_avail_subnet(region, subnet_ids, availability_zone):
for s in subnets:
# Subtract pending requests from available IP count
pending_req = [sr for sr in pending_spot_req if
sr.launch_specification.subnet_id == s.subnet_id]
sr.launch_specification.subnet_id == s.id]
usable_ips = s.available_ip_address_count - len(pending_req)
if usable_ips > min_ips:
usable_subnets.append(UsableSubnet(s, usable_ips))
Expand Down

0 comments on commit f79e782

Please sign in to comment.