Skip to content

Commit 9c7ab9c

Browse files
committed
mark compartment_id as optional to avoid validation during destroy for the legacy configurations
1 parent 0bebabc commit 9c7ab9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

oci/core_volume_attachment_resource.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ func CoreVolumeAttachmentResource() *schema.Resource {
9494
"compartment_id": {
9595
Type: schema.TypeString,
9696
Computed: true,
97+
// Keep as optional to avoid validation during destroy for the legacy configurations
98+
Optional: true,
99+
Deprecated: FieldDeprecatedAndAvoidReferences("compartment_id"),
97100
},
98101
"ipv4": {
99102
Type: schema.TypeString,

0 commit comments

Comments
 (0)