Skip to content

Commit d8e5d7d

Browse files
committed
add more time for retry
1 parent 212cc6f commit d8e5d7d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
## 1.55.1 (Unreleased)
2+
3+
ENHANCEMENTS:
4+
* Resource: `tencentcloud_tcr_vpc_attachment` add more time for retry.
5+
26
## 1.55.0 (March 26, 2021)
37

48
FEATURES:

tencentcloud/resource_tc_eip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func resourceTencentCloudEipCreate(d *schema.ResourceData, meta interface{}) err
151151
logId, request.GetAction(), request.ToJsonString(), response.ToJsonString())
152152

153153
if len(response.Response.AddressSet) < 1 {
154-
return resource.NonRetryableError(fmt.Errorf("eip id is nil"))
154+
return resource.RetryableError(fmt.Errorf("eip id is nil"))
155155
}
156156
eipId = *response.Response.AddressSet[0]
157157
return nil

tencentcloud/resource_tc_tcr_vpc_attachment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ func resourceTencentCLoudTcrVpcAttachmentDelete(d *schema.ResourceData, meta int
314314
}
315315

316316
func WaitForAccessIpExists(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, subnetId string) (accessIp string, errRet error) {
317-
errRet = resource.Retry(readRetryTimeout, func() *resource.RetryError {
317+
errRet = resource.Retry(3*readRetryTimeout, func() *resource.RetryError {
318318
result, has, inErr := tcrService.DescribeTCRVPCAttachmentById(ctx, instanceId, vpcId, subnetId)
319319
if inErr != nil {
320320
return retryError(inErr)

0 commit comments

Comments
 (0)