diff --git a/tencentcloud/resource_tc_nat_gateway.go b/tencentcloud/resource_tc_nat_gateway.go index 0d163b2f3b..3db85366f5 100644 --- a/tencentcloud/resource_tc_nat_gateway.go +++ b/tencentcloud/resource_tc_nat_gateway.go @@ -222,7 +222,7 @@ func resourceTencentCloudNatGatewayCreate(d *schema.ResourceData, meta interface result, e := meta.(*TencentCloudClient).apiV3Conn.UseVpcClient().DescribeNatGateways(statRequest) if e != nil { log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", - logId, request.GetAction(), request.ToJsonString(), e.Error()) + logId, statRequest.GetAction(), statRequest.ToJsonString(), e.Error()) return retryError(e) } else { //if not, quit