Skip to content

Commit

Permalink
Merge pull request #11278 from olemarkus/automated-cherry-pick-of-#11…
Browse files Browse the repository at this point in the history
…276-origin-release-1.20

Automated cherry pick of #11276: If one tries to use eip with a public ip that doesn't exist,
  • Loading branch information
k8s-ci-robot authored Apr 21, 2021
2 parents 73a5e71 + 19dd4ba commit 63da58a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/awstasks/elastic_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (e *ElasticIP) find(cloud awsup.AWSCloud) (*ElasticIP, error) {
}

if response == nil || len(response.Addresses) == 0 {
return nil, nil
return nil, fmt.Errorf("found no ElasticIPs for: %v", e)
}

if len(response.Addresses) != 1 {
Expand Down

0 comments on commit 63da58a

Please sign in to comment.