fixing bug with leaking Elastic ips on cluster delete.

This commit is contained in:
ikropotov 2017-02-10 17:14:16 +03:00
parent 765f612a7f
commit 31cb04021f
1 changed files with 1 additions and 1 deletions

View File

@ -776,7 +776,7 @@ func ListSubnets(cloud fi.Cloud, clusterName string) ([]*ResourceTracker, error)
for _, address := range response.Addresses {
ip := aws.StringValue(address.PublicIp)
if elasticIPs.Has(ip) {
if !elasticIPs.Has(ip) {
continue
}