Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenEarth committed Dec 24, 2024
1 parent 890b6fc commit 5ad3d79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func resourceTencentCloudClbListenerDefaultDomainCreate(d *schema.ResourceData,
}

if result == nil || result.Response == nil || response.Response.RequestId == nil {
return resource.NonRetryableError(fmt.Errorf("modify domain attributes failed"))
return resource.NonRetryableError(fmt.Errorf("Modify domain attributes failed, Response is nil."))
}

response = result
Expand Down Expand Up @@ -230,7 +230,7 @@ func resourceTencentCloudClbListenerDefaultDomainUpdate(d *schema.ResourceData,
}

if result == nil || result.Response == nil || response.Response.RequestId == nil {
return resource.NonRetryableError(fmt.Errorf("modify domain attributes failed"))
return resource.NonRetryableError(fmt.Errorf("Modify domain attributes failed, Response is nil."))
}

response = result
Expand Down
10 changes: 5 additions & 5 deletions tencentcloud/services/clb/resource_tc_clb_listener_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func resourceTencentCloudClbListenerRuleCreate(d *schema.ResourceData, meta inte
log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n",
logId, request.GetAction(), request.ToJsonString(), response.ToJsonString())
if response == nil || response.Response == nil || response.Response.RequestId == nil {
return resource.NonRetryableError(fmt.Errorf("create CLB listener rule failed"))
return resource.NonRetryableError(fmt.Errorf("Create CLB listener rule failed, Response is nil."))
}

requestId = *response.Response.RequestId
Expand Down Expand Up @@ -406,7 +406,7 @@ func resourceTencentCloudClbListenerRuleCreate(d *schema.ResourceData, meta inte
log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n",
logId, request.GetAction(), request.ToJsonString(), response.ToJsonString())
if response == nil || response.Response == nil || response.Response.RequestId == nil {
return resource.NonRetryableError(fmt.Errorf("modify domain attributes failed"))
return resource.NonRetryableError(fmt.Errorf("Modify domain attributes failed, Response is nil."))
}

requestId := *response.Response.RequestId
Expand Down Expand Up @@ -444,7 +444,7 @@ func resourceTencentCloudClbListenerRuleCreate(d *schema.ResourceData, meta inte
log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n",
logId, request.GetAction(), request.ToJsonString(), response.ToJsonString())
if response == nil || response.Response == nil || response.Response.RequestId == nil {
return resource.NonRetryableError(fmt.Errorf("modify rule failed"))
return resource.NonRetryableError(fmt.Errorf("Modify rule failed, Response is nil."))
}

requestId := *response.Response.RequestId
Expand Down Expand Up @@ -694,7 +694,7 @@ func resourceTencentCloudClbListenerRuleUpdate(d *schema.ResourceData, meta inte
log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n",
logId, request.GetAction(), request.ToJsonString(), response.ToJsonString())
if response == nil || response.Response == nil || response.Response.RequestId == nil {
return resource.NonRetryableError(fmt.Errorf("modify rule failed"))
return resource.NonRetryableError(fmt.Errorf("Modify rule failed, Response is nil."))
}

requestId := *response.Response.RequestId
Expand Down Expand Up @@ -768,7 +768,7 @@ func resourceTencentCloudClbListenerRuleUpdate(d *schema.ResourceData, meta inte
log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n",
logId, request.GetAction(), request.ToJsonString(), response.ToJsonString())
if response == nil || response.Response == nil || response.Response.RequestId == nil {
return resource.NonRetryableError(fmt.Errorf("modify domain attributes failed"))
return resource.NonRetryableError(fmt.Errorf("Modify domain attributes failed, Response is nil."))
}

requestId := *response.Response.RequestId
Expand Down

0 comments on commit 5ad3d79

Please sign in to comment.