From 8c20619b30aae4422a5f2c9cbfe4645a3e4968dc Mon Sep 17 00:00:00 2001 From: mikatong Date: Thu, 18 Jan 2024 17:45:58 +0800 Subject: [PATCH] fix cvm UNDERWRITE --- tencentcloud/services/cvm/resource_tc_instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tencentcloud/services/cvm/resource_tc_instance.go b/tencentcloud/services/cvm/resource_tc_instance.go index c085be4dc0..7e822dd071 100644 --- a/tencentcloud/services/cvm/resource_tc_instance.go +++ b/tencentcloud/services/cvm/resource_tc_instance.go @@ -443,7 +443,7 @@ func resourceTencentCloudInstanceCreate(d *schema.ResourceData, meta interface{} if v, ok := d.GetOk("instance_charge_type"); ok { instanceChargeType := v.(string) request.InstanceChargeType = &instanceChargeType - if instanceChargeType == CVM_CHARGE_TYPE_PREPAID { + if instanceChargeType == CVM_CHARGE_TYPE_PREPAID || instanceChargeType == CVM_CHARGE_TYPE_UNDERWRITE { request.InstanceChargePrepaid = &cvm.InstanceChargePrepaid{} if period, ok := d.GetOk("instance_charge_type_prepaid_period"); ok { periodInt64 := int64(period.(int))