Skip to content

'invalid memory address or nil pointer dereference' while getting a VM. #168

Closed
@BiGOUDx

Description

Nutanix Cluster Information

  • Nutanix Cluster Prism Element : 5.15 LTS
  • Nutanix Prism Central : pc.2020.8.0.1

Terraform Version

Terraform v0.13.3
provider registry.terraform.io/terraform-providers/nutanix v1.1.0

Affected Resource(s)

  • data "nutanix_virtual_machine" "template_win2019"

Terraform Configuration Files

provider "nutanix" {
 username = "admin"
 password = "xxxxxxxxx"
 endpoint = "fqdn prism central"
 insecure = true
}

data "nutanix_virtual_machine" "template_win2019" {
  vm_id = "id of the vm"
}

Debug Output

Panic Output

https://gist.github.com/BiGOUDx/1a5b502c26bfeb6cd04bc31948b6a2b3

Expected Behavior

Get information from my template VM.

Actual Behavior

Terraform crashes. A lot of errors appear.

Steps to Reproduce

  1. terraform plan

Important Factors

I tried:

  • with Prism Element
  • with Prism Central
  • with Terraform 0.12.29

It's working with some VM (other ID). Some don't work.
I cannot understand the common factor.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions