Skip to content

Commit 1657243

Browse files
committed
pg support set cpu
1 parent a3a538b commit 1657243

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tencentcloud/services/postgresql/resource_tc_postgresql_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func resourceTencentCloudPostgresqlInstanceCreate(d *schema.ResourceData, meta i
358358
autoRenewFlag = 0
359359
autoVoucher = 0
360360
voucherIds []*string
361-
cpu = 0 // cpu only used for query specCode which contains memory info
361+
cpu int // cpu only used for query specCode which contains cpu info
362362
)
363363

364364
if v, ok := d.GetOkExists("cpu"); ok {

tencentcloud/services/postgresql/resource_tc_postgresql_readonly_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func resourceTencentCloudPostgresqlReadOnlyInstanceCreate(d *schema.ResourceData
175175
zone string
176176
dbVersion string
177177
memory int
178-
cpu = 0 // cpu only used for query specCode which contains memory info
178+
cpu int // cpu only used for query specCode which contains cpu info
179179
)
180180

181181
if v, ok := d.GetOk("db_version"); ok {

0 commit comments

Comments
 (0)