Skip to content

Commit e4e463c

Browse files
authored
Merge pull request #533 from gailwang/master
fix create prepaid mysql error
2 parents 10b45cd + 654c7c9 commit e4e463c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
## 1.45.2 (Unreleased)
2+
3+
BUG FIXES:
4+
* Resource: `tencentcloud_mysql_instance` fix creating prepaid instance error.
5+
26
## 1.45.1 (October 16, 2020)
37

48
ENHANCEMENTS:

tencentcloud/resource_tc_mysql_instance.go

+2-5
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,8 @@ func TencentMsyqlBasicInfo() map[string]*schema.Schema {
111111
Optional: true,
112112
Default: 1,
113113
ConflictsWith: []string{"pay_type", "period"},
114-
DiffSuppressFunc: func(k, olds, news string, d *schema.ResourceData) bool {
115-
return true
116-
},
117-
ValidateFunc: validateAllowedIntValue(MYSQL_AVAILABLE_PERIOD),
118-
Description: "Period of instance. NOTES: Only supported prepaid instance.",
114+
ValidateFunc: validateAllowedIntValue(MYSQL_AVAILABLE_PERIOD),
115+
Description: "Period of instance. NOTES: Only supported prepaid instance.",
119116
},
120117
"auto_renew_flag": {
121118
Type: schema.TypeInt,

0 commit comments

Comments
 (0)