@@ -77,7 +77,7 @@ resource "tencentcloud_cdh_instance" "foo" {
7777 availability_zone = var.availability_zone
7878 host_type = "HM50"
7979 charge_type = "PREPAID"
80- prepaid_period = 1
80+ instance_charge_type_prepaid_period = 1
8181 host_name = "test"
8282 prepaid_renew_flag = "DISABLE_NOTIFY_AND_MANUAL_RENEW"
8383}
@@ -1170,9 +1170,12 @@ func resourceTencentCloudInstanceUpdate(d *schema.ResourceData, meta interface{}
11701170 if errRet != nil {
11711171 return retryError (errRet , InternalError )
11721172 }
1173- if instance != nil && * instance .LatestOperationState == CVM_LATEST_OPERATION_STATE_OPERATING {
1174- return resource .RetryableError (fmt .Errorf ("cvm instance latest operetion status is %s, retry..." , * instance .LatestOperationState ))
1175- }
1173+ log .Printf (instanceId )
1174+ log .Printf (* instance .InstanceState )
1175+ //log.Printf(*instance.LatestOperationState)
1176+ //if instance != nil && *instance.LatestOperationState == CVM_LATEST_OPERATION_STATE_OPERATING {
1177+ // return resource.RetryableError(fmt.Errorf("cvm instance latest operetion status is %s, retry...", *instance.LatestOperationState))
1178+ //}
11761179 return nil
11771180 })
11781181 if err != nil {
@@ -1190,9 +1193,11 @@ func resourceTencentCloudInstanceUpdate(d *schema.ResourceData, meta interface{}
11901193 if errRet != nil {
11911194 return retryError (errRet , InternalError )
11921195 }
1193- if instance != nil && * instance .LatestOperationState == CVM_LATEST_OPERATION_STATE_OPERATING {
1194- return resource .RetryableError (fmt .Errorf ("cvm instance latest operetion status is %s, retry..." , * instance .LatestOperationState ))
1195- }
1196+ log .Printf (instanceId )
1197+ log .Printf (* instance .InstanceState )
1198+ //if instance != nil && *instance.LatestOperationState == CVM_LATEST_OPERATION_STATE_OPERATING {
1199+ // return resource.RetryableError(fmt.Errorf("cvm instance latest operetion status is %s, retry...", *instance.LatestOperationState))
1200+ //}
11961201 return nil
11971202 })
11981203 if err != nil {
@@ -1275,9 +1280,11 @@ func resourceTencentCloudInstanceUpdate(d *schema.ResourceData, meta interface{}
12751280 if errRet != nil {
12761281 return retryError (errRet , InternalError )
12771282 }
1278- if instance != nil && * instance .LatestOperationState == CVM_LATEST_OPERATION_STATE_OPERATING {
1279- return resource .RetryableError (fmt .Errorf ("cvm instance latest operetion status is %s, retry..." , * instance .LatestOperationState ))
1280- }
1283+ log .Printf (instanceId )
1284+ log .Printf (* instance .InstanceState )
1285+ //if instance != nil && *instance.LatestOperationState == CVM_LATEST_OPERATION_STATE_OPERATING {
1286+ // return resource.RetryableError(fmt.Errorf("cvm instance latest operetion status is %s, retry...", *instance.LatestOperationState))
1287+ //}
12811288 return nil
12821289 })
12831290 if err != nil {
0 commit comments