Skip to content

Commit 91a512c

Browse files
authored
fix(cfw): [123456789] tencentcloud_cfw_nat_policy optimiz code logic (#3663)
* add * add
1 parent 460c936 commit 91a512c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.changelog/3663.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_cfw_nat_policy: optimiz code logic
3+
```

tencentcloud/services/cfw/resource_tc_cfw_nat_policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func resourceTencentCloudCfwNatPolicyCreate(d *schema.ResourceData, meta interfa
173173
log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString())
174174
}
175175

176-
if result == nil || result.Response == nil || response.Response.RuleUuid == nil || len(result.Response.RuleUuid) == 0 {
176+
if result == nil || result.Response == nil || result.Response.RuleUuid == nil || len(result.Response.RuleUuid) == 0 {
177177
return resource.NonRetryableError(fmt.Errorf("Create cfw natPolicy failed, Response is nil."))
178178
}
179179

0 commit comments

Comments
 (0)