Skip to content

Commit d1ac550

Browse files
Nilesh ParmarJulia3072
authored andcommitted
Bug Fix - API_KEY_UPDATE
1 parent 082497f commit d1ac550

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

internal/service/bds/bds_bds_instance_api_key_resource.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func BdsBdsInstanceApiKeyResource() *schema.Resource {
2929
},
3030
Timeouts: tfresource.DefaultTimeout,
3131
Create: createBdsBdsInstanceApiKey,
32+
Update: updateBdsBdsInstanceApiKey,
3233
Read: readBdsBdsInstanceApiKey,
3334
Delete: deleteBdsBdsInstanceApiKey,
3435
Schema: map[string]*schema.Schema{
@@ -41,7 +42,7 @@ func BdsBdsInstanceApiKeyResource() *schema.Resource {
4142
"key_alias": {
4243
Type: schema.TypeString,
4344
Required: true,
44-
ForceNew: true,
45+
//ForceNew: true,
4546
},
4647
"passphrase": {
4748
Type: schema.TypeString,
@@ -96,6 +97,14 @@ func createBdsBdsInstanceApiKey(d *schema.ResourceData, m interface{}) error {
9697
return tfresource.CreateResource(d, sync)
9798
}
9899

100+
func updateBdsBdsInstanceApiKey(d *schema.ResourceData, m interface{}) error {
101+
sync := &BdsBdsInstanceApiKeyResourceCrud{}
102+
sync.D = d
103+
sync.Client = m.(*client.OracleClients).BdsClient()
104+
105+
return tfresource.CreateResource(d, sync)
106+
}
107+
99108
func readBdsBdsInstanceApiKey(d *schema.ResourceData, m interface{}) error {
100109
sync := &BdsBdsInstanceApiKeyResourceCrud{}
101110
sync.D = d

0 commit comments

Comments
 (0)