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

Image gets deleted from PC if nutanix_image update errors out #453

Closed
bhati-pradeep opened this issue May 31, 2022 · 0 comments · Fixed by #480
Closed

Image gets deleted from PC if nutanix_image update errors out #453

bhati-pradeep opened this issue May 31, 2022 · 0 comments · Fixed by #480
Assignees

Comments

@bhati-pradeep
Copy link
Collaborator

Nutanix Cluster Information

PC: pc.2022.4

Terraform Version

Terraform v1.1.9
on darwin_amd64

  • provider registry.terraform.io/nutanix/nutanix v1.5.0
    Your version of Terraform is out of date! The latest version
    is 1.2.1. You can update by downloading from https://www.terraform.io/downloads.html

Affected Resource(s)

  • nutanix_image

Terraform Configuration Files

resource "nutanix_image" "image" {
  name = "check123"
  description = "asdas"
  source_uri = "https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86_64/alpine-standard-3.16.0-x86_64.iso"
  image_type = "DISK_IMAGE"
}

Expected Behavior

Update should error out and state shouldn't get updated so that fix can be applied for update.

Actual Behavior

Image gets deleted from the PC

Steps to Reproduce

  1. terraform apply
  2. Update source_uri -> which probably not allowed resulting in error out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants