Skip to content

Commit b220047

Browse files
author
“guojunchu”
committed
fix fmt
1 parent 23c269e commit b220047

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tencentcloud/service_tencentcloud_clb.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,12 +920,19 @@ func (me *ClbService) CreateTargetGroup(ctx context.Context, targetGroupName str
920920
return
921921
}
922922

923-
func (me *ClbService) ModifyTargetGroup(ctx context.Context, targetGroupId string, targetGroupName string) error {
923+
func (me *ClbService) ModifyTargetGroup(ctx context.Context, targetGroupId string, targetGroupName string) (err error) {
924924
request := clb.NewModifyTargetGroupAttributeRequest()
925925
request.TargetGroupId = &targetGroupId
926926
request.TargetGroupName = &targetGroupName
927927

928-
_, err := me.client.UseClbClient().ModifyTargetGroupAttribute(request)
928+
err = resource.Retry(writeRetryTimeout, func() *resource.RetryError {
929+
_, err := me.client.UseClbClient().ModifyTargetGroupAttribute(request)
930+
if err != nil {
931+
return retryError(err, InternalError)
932+
}
933+
return nil
934+
})
935+
929936
if err != nil {
930937
return err
931938
}

0 commit comments

Comments
 (0)