Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nutanix_image version always shows changes #682

Open
drofloh opened this issue Jun 28, 2024 · 0 comments · May be fixed by #694
Open

nutanix_image version always shows changes #682

drofloh opened this issue Jun 28, 2024 · 0 comments · May be fixed by #694
Labels

Comments

@drofloh
Copy link

drofloh commented Jun 28, 2024

Nutanix Cluster Information

  • Nutanix Cluster (Prism Element / AOS) 6.5.5.7
  • Nutanix Prism Central: Version pc.2024.1.0.1

Terraform Version

Terraform v1.9.0
on darwin_arm64

  • provider registry.terraform.io/nutanix/nutanix v1.9.5

Affected Resource(s)

  • nutanix_image

Terraform Configuration Files

resource "nutanix_image" "rocky9" {
  name        = "Rocky9"
  description = "Public Rocky9 Base Image sourced from https://dl.rockylinux.org/pub/rocky/9/images/x86_64/${var.rocky9_image_name}"
  source_uri  = "https://dl.rockylinux.org/pub/rocky/9/images/x86_64/${var.rocky9_image_name}"
  checksum = {
    checksum_algorithm = "SHA_256"
    checksum_value     = var.rocky9_image_checksum
  }
  version = {
    product_name    = "Rocky9"
    product_version = var.rocky9_image_name
  }
}

Issue

With the above code, everytime we run terraform it always shows changes to the "version" even though its not being changed.

It should say no changes.

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:

  # nutanix_image.rocky9 will be updated in-place
  ~ resource "nutanix_image" "rocky9" {
        id                             = "fefc7ecd-050d-463e-a14b-e96d2e6c62b2"
        name                           = "Rocky9"
      ~ version                        = {
          + "product_name"    = "Rocky9"
          + "product_version" = "Rocky-9-GenericCloud-LVM-9.4-20240609.0.x86_64.qcow2"
        }
        # (12 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
@Haroon-Dweikat-Ntx Haroon-Dweikat-Ntx linked a pull request Oct 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: This is need to review
Development

Successfully merging a pull request may close this issue.

2 participants