Replies: 3 comments 3 replies
-
|
I think this is expected behavior for computed attributes. Ideally the provider should ignore these attributes when |
Beta Was this translation helpful? Give feedback.
-
|
Having attributes "known after apply" is completely normal for computed attributes, and shouldn't cause any issues. @tico88612 But I really don't understand why those computed attributes are causing issues and why you need to ignore them? Could you share more details on your use case? perhaps attach full plan / apply log before / after? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @bpg
I think this is true for VMs. For templates, they do not get IP addresses assigned hence ~ resource "proxmox_virtual_environment_vm" "ubuntu_template" {
id = "9100"
~ ipv4_addresses = [] -> (known after apply)
~ ipv6_addresses = [] -> (known after apply)
name = "temp-ubuntu-25-04"
~ network_interface_names = [] -> (known after apply)
tags = [
"terraform",
"ubuntu",
]
# (27 unchanged attributes hidden)
# (9 unchanged blocks hidden)
}Maybe there are some configurations that I missed. Could you please advise how we can avoid this |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not sure this is indentation behavior, so I post the discussion.
I applied a template VM, but when I tried another apply, it gave me
ipv4_addresses,ipv6_addresses,network_interface_namesknown after apply.My current solution is to add lifecycle ignore_changes, but it pops up a warning.
Warning: Redundant ignore_changes elementBeta Was this translation helpful? Give feedback.
All reactions