mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 21:12:07 +00:00
Fix : do not try to delete floatingIP if it does not exists
This commit is contained in:
parent
65c23ea0e7
commit
be5f9094d0
@ -776,9 +776,11 @@ func (lb *LoadBalancer) EnsureTCPLoadBalancerDeleted(name, region string) error
|
||||
if err != nil && !isNotFound(err) {
|
||||
return err
|
||||
}
|
||||
error := floatingips.Delete(lb.network, floatingIP.ID).ExtractErr()
|
||||
if error != nil && !isNotFound(error) {
|
||||
return error
|
||||
if floatingIP != nil {
|
||||
error := floatingips.Delete(lb.network, floatingIP.ID).ExtractErr()
|
||||
if error != nil && !isNotFound(error) {
|
||||
return error
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user