mirror of https://github.com/k3s-io/k3s
remove unnecessary condition judgement
parent
c933067cd3
commit
f0d894543b
|
@ -1287,7 +1287,7 @@ func (lbaas *LbaasV2) EnsureLoadBalancerDeleted(clusterName string, service *v1.
|
|||
return nil
|
||||
}
|
||||
|
||||
if loadbalancer != nil && loadbalancer.VipPortID != "" {
|
||||
if loadbalancer.VipPortID != "" {
|
||||
portID := loadbalancer.VipPortID
|
||||
floatingIP, err := getFloatingIPByPortID(lbaas.network, portID)
|
||||
if err != nil && err != ErrNotFound {
|
||||
|
|
Loading…
Reference in New Issue