fix(region): avoid delete lb failed (#20710)

This commit is contained in:
屈轩
2024-07-05 12:38:43 +08:00
committed by GitHub
parent 876f3de5a3
commit b6cc2804e1
+6 -1
View File
@@ -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
}