mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): avoid delete lb failed (#20710)
This commit is contained in:
@@ -315,8 +315,13 @@ func (self *SManagedVirtualizationRegionDriver) RequestDeleteLoadbalancer(ctx co
|
||||
if errors.Cause(err) == cloudprovider.ErrNotFound {
|
||||
return nil, nil
|
||||
}
|
||||
return nil, errors.Wrapf(err, "GetILoadbalancer")
|
||||
}
|
||||
return nil, iLb.Delete(ctx)
|
||||
err = iLb.Delete(ctx)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "iLb.Delete")
|
||||
}
|
||||
return nil, nil
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user