Skip to content

Commit

Permalink
resource/alicloud_gpdb_instance: Fixed ssl_enabled invalid error duri…
Browse files Browse the repository at this point in the history
…ng creation
  • Loading branch information
MrWolong authored and xiaozhu36 committed Jul 28, 2023
1 parent 0063e9f commit 9f285af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion alicloud/resource_alicloud_gpdb_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ func resourceAlicloudGpdbDbInstanceUpdate(d *schema.ResourceData, meta interface
request = map[string]interface{}{
"DBInstanceId": d.Id(),
}
if !d.IsNewResource() && d.HasChange("ssl_enabled") {
if d.HasChange("ssl_enabled") {
update = true
}
if v, ok := d.GetOkExists("ssl_enabled"); ok {
Expand Down
2 changes: 2 additions & 0 deletions alicloud/resource_alicloud_gpdb_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ func TestAccAlicloudGPDBDBInstance_basic1(t *testing.T) {
"create_sample_data": `false`,
"encryption_type": "CloudDisk",
"encryption_key": "${alicloud_kms_key.key.id}",
"ssl_enabled": "1",
}),
Check: resource.ComposeTestCheckFunc(
testAccCheck(map[string]string{
Expand All @@ -613,6 +614,7 @@ func TestAccAlicloudGPDBDBInstance_basic1(t *testing.T) {
"ip_whitelist.#": "1",
"encryption_type": "CloudDisk",
"encryption_key": CHECKSET,
"ssl_enabled": "1",
}),
),
},
Expand Down

0 comments on commit 9f285af

Please sign in to comment.