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

This commit is contained in:
屈轩
2024-07-05 12:38:05 +08:00
committed by GitHub
parent a3ebd7ca97
commit 997204711f
+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
}