Giter VIP home page Giter VIP logo

Comments (5)

lfelicetti-softatnet avatar lfelicetti-softatnet commented on August 9, 2024 1

The issue regards DNS configuration, if you set null values, the plugin crashes. Here a sample mitigation:

---SNIP---
    dynamic "dns" {
      for_each = var.vm_ip_dns != null ? ["execute"] : []
      content {
        servers = var.vm_ip_dns
        domain = var.vm_ip_domain
      }
    }
---SNIP---

from terraform-provider-proxmox.

bpg avatar bpg commented on August 9, 2024 1

Thanks for reporting!

#928 will fix the panic, but please note that a dangling empty dns block in the template will keep popping up in the plan as an "update in-place" on each re-apply:

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following
symbols:
  ~ update in-place

Terraform will perform the following actions:

  # proxmox_virtual_environment_vm.ubuntu_vm will be updated in-place
  ~ resource "proxmox_virtual_environment_vm" "ubuntu_vm" {
        id                      = "1000"
        name                    = "test"
        tags                    = []
        # (25 unchanged attributes hidden)

      ~ initialization {
            # (3 unchanged attributes hidden)

          + dns {}

            # (1 unchanged block hidden)
        }

        # (4 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

from terraform-provider-proxmox.

lfelicetti-softatnet avatar lfelicetti-softatnet commented on August 9, 2024

Relevant errors:

2024-01-16T15:15:21.082+0100 [DEBUG] provider.terraform-provider-proxmox_v0.43.3: panic: interface conversion: interface {} is nil, not map[string]interface {}

Stack trace from the terraform-provider-proxmox_v0.43.3 plugin:

panic: interface conversion: interface {} is nil, not map[string]interface {}

from terraform-provider-proxmox.

bpg avatar bpg commented on August 9, 2024

@all-contributors please add @lfelicetti-softatnet for bug

from terraform-provider-proxmox.

allcontributors avatar allcontributors commented on August 9, 2024

@bpg

I've put up a pull request to add @lfelicetti-softatnet! 🎉

from terraform-provider-proxmox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.