mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-26 04:01:50 -04:00
22 lines
489 B
HCL
22 lines
489 B
HCL
# Minimal reproducer for https://github.com/opentofu/opentofu/issues/3644
|
|
# Bug requires ignore_changes on a block (not a simple attribute), here I use network_interface
|
|
|
|
terraform {
|
|
required_providers {
|
|
vsphere = {
|
|
source = "vmware/vsphere"
|
|
version = "~> 2.14"
|
|
}
|
|
}
|
|
}
|
|
|
|
resource "vsphere_virtual_machine" "vm" {
|
|
name = "x"
|
|
resource_pool_id = "x"
|
|
network_interface { network_id = "x" }
|
|
|
|
lifecycle {
|
|
ignore_changes = [network_interface]
|
|
}
|
|
}
|