Skip to content

Commit 20faa9b

Browse files
committed
lifecycle prevent_destroy can't be dynamic
1 parent ec0ab94 commit 20faa9b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

openstack/infrastructure.tf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,6 @@ resource "openstack_blockstorage_volume_v3" "volumes" {
107107
volume_type = lookup(each.value, "type", null)
108108
snapshot_id = lookup(each.value, "snapshot", null)
109109
enable_online_resize = lookup(each.value, "enable_resize", false)
110-
lifecycle {
111-
prevent_destroy = ! lookup(values, "managed", true)
112-
}
113110
}
114111
data "openstack_blockstorage_volume_v3" "existing_volumes" {
115112
for_each = {

0 commit comments

Comments
 (0)