Skip to content

Commit f490ed2

Browse files
committed
add
1 parent 13296f2 commit f490ed2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tencentcloud/services/clb/service_tencentcloud_clb.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,8 +1515,15 @@ func (me *ClbService) ModifyTargetGroupInstancesWeight(ctx context.Context, targ
15151515
ratelimit.Check(request.GetAction())
15161516
_, err := me.client.UseClbClient().ModifyTargetGroupInstancesWeight(request)
15171517
if err != nil {
1518+
if e, ok := err.(*sdkErrors.TencentCloudSDKError); ok {
1519+
if e.GetCode() == "FailedOperation.ResourceInOperating" {
1520+
return resource.RetryableError(fmt.Errorf("ModifyTargetGroupInstancesWeight is waitting retry..."))
1521+
}
1522+
}
1523+
15181524
return tccommon.RetryError(err, tccommon.InternalError)
15191525
}
1526+
15201527
return nil
15211528
})
15221529

0 commit comments

Comments
 (0)