@@ -77,7 +77,7 @@ resource "tencentcloud_cdh_instance" "foo" {
77
77
availability_zone = var.availability_zone
78
78
host_type = "HM50"
79
79
charge_type = "PREPAID"
80
- prepaid_period = 1
80
+ instance_charge_type_prepaid_period = 1
81
81
host_name = "test"
82
82
prepaid_renew_flag = "DISABLE_NOTIFY_AND_MANUAL_RENEW"
83
83
}
@@ -1170,9 +1170,12 @@ func resourceTencentCloudInstanceUpdate(d *schema.ResourceData, meta interface{}
1170
1170
if errRet != nil {
1171
1171
return retryError (errRet , InternalError )
1172
1172
}
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
+ //}
1176
1179
return nil
1177
1180
})
1178
1181
if err != nil {
@@ -1190,9 +1193,11 @@ func resourceTencentCloudInstanceUpdate(d *schema.ResourceData, meta interface{}
1190
1193
if errRet != nil {
1191
1194
return retryError (errRet , InternalError )
1192
1195
}
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
+ //}
1196
1201
return nil
1197
1202
})
1198
1203
if err != nil {
@@ -1275,9 +1280,11 @@ func resourceTencentCloudInstanceUpdate(d *schema.ResourceData, meta interface{}
1275
1280
if errRet != nil {
1276
1281
return retryError (errRet , InternalError )
1277
1282
}
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
+ //}
1281
1288
return nil
1282
1289
})
1283
1290
if err != nil {
0 commit comments