terraform-provider-proxmox icon indicating copy to clipboard operation
terraform-provider-proxmox copied to clipboard

vga changed on second run with unchanged source

Open bpg opened this issue 10 months ago • 2 comments

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?

bpg avatar Apr 18 '24 20:04 bpg

same for me

konstantin-kornienko avatar Apr 26 '24 07:04 konstantin-kornienko

Fixed in #1328 for #1231

bpg avatar May 27 '24 03:05 bpg