bpg / terraform-provider-proxmox

Terraform Provider for Proxmox
https://registry.terraform.io/providers/bpg/proxmox
Mozilla Public License 2.0
657 stars 113 forks source link

vga changed on second run with unchanged source #1224

Open bpg opened 2 months ago

bpg commented 2 months ago

Discussed in https://github.com/bpg/terraform-provider-proxmox/discussions/1221

Originally posted by **xoxys** April 18, 2024 Hi, I have a template created with packer. After the initial vm resource creation from this template with `terraform-provider-proxmox` I re-run opentofu, and it always detects a change even if the definition of this resource has not changed: ``` OpenTofu will perform the following actions: # module.pve_server.proxmox_virtual_environment_vm.server["chromia"] will be updated in-place ~ resource "proxmox_virtual_environment_vm" "server" { id = "106" name = "chromia.rknet.org" tags = [ "os_redhat", "provisioner_terraform", "service_k3s-pve", "type_k3s-node", "zone_lan", ] # (26 unchanged attributes hidden) - vga { - enabled = true -> null - memory = 0 -> null } # (10 unchanged blocks hidden) } ``` Is this a bug, or am I doing something wrong?
konstantin-kornienko commented 2 months ago

same for me

bpg commented 1 month ago

Fixed in #1328 for #1231