Skip to content

Commit

Permalink
remove 409 silencing from KeyRingDelete
Browse files Browse the repository at this point in the history
  • Loading branch information
wsiew committed Aug 29, 2023
1 parent 4de7118 commit ae3f291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibm/service/kms/resource_ibm_kms_key_rings.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func resourceIBMKmsKeyRingDelete(d *schema.ResourceData, meta interface{}) error
err = kpAPI.DeleteKeyRing(context.Background(), id[0], kp.WithForce(force_delete))
if err != nil {
kpError := err.(*kp.Error)
if kpError.StatusCode == 404 || kpError.StatusCode == 409 { // remove 409 silencing in next release after API is changed
if kpError.StatusCode == 404 {
return nil
} else {
return fmt.Errorf(" failed to Destroy key ring with error: %s", err)
Expand Down

0 comments on commit ae3f291

Please sign in to comment.