Add protection of network port destruction
This commit is contained in:
parent
308b47d847
commit
185ce50831
12
dtca.tf
12
dtca.tf
|
@ -10,9 +10,9 @@ resource "openstack_networking_port_v2" "dtcaport" {
|
|||
data.openstack_networking_secgroup_v2.allegress.id
|
||||
]
|
||||
admin_state_up = "true"
|
||||
#lifecycle {
|
||||
# prevent_destroy = true
|
||||
#}
|
||||
lifecycle {
|
||||
prevent_destroy = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -25,9 +25,9 @@ resource "openstack_networking_port_v2" "dtcadbport" {
|
|||
data.openstack_networking_secgroup_v2.allegress.id
|
||||
]
|
||||
admin_state_up = "true"
|
||||
#lifecycle {
|
||||
# prevent_destroy = true
|
||||
#}
|
||||
lifecycle {
|
||||
prevent_destroy = true
|
||||
}
|
||||
}
|
||||
|
||||
# Create volumes
|
||||
|
|
Loading…
Reference in a new issue