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

r/virtual_machine_data_disk_attachment: handling the VM being deleted #6237

Merged
merged 1 commit into from Mar 25, 2020

Conversation

tombuildsstuff
Copy link
Member

@tombuildsstuff tombuildsstuff commented Mar 24, 2020

Updates the Read function to mark the Attachment as gone when the VM
has been deleted

Tests pass:

$ TF_ACC=1 go test -v ./azurerm/internal/services/compute/tests/ -timeout=60m -run=TestAccAzureRMVirtualMachineDataDiskAttachment_destroy
=== RUN   TestAccAzureRMVirtualMachineDataDiskAttachment_destroy
=== PAUSE TestAccAzureRMVirtualMachineDataDiskAttachment_destroy
=== CONT  TestAccAzureRMVirtualMachineDataDiskAttachment_destroy
--- PASS: TestAccAzureRMVirtualMachineDataDiskAttachment_destroy (566.00s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/compute/tests	566.040s

Fixes #6226
Fixes #5254

Updates the Read function to mark the Attachment as gone when the VM
has been deleted

Tests pass:

```
$ TF_ACC=1 go test -v ./azurerm/internal/services/compute/tests/ -timeout=60m -run=TestAccAzureRMVirtualMachineDataDiskAttachment_destroy
=== RUN   TestAccAzureRMVirtualMachineDataDiskAttachment_destroy
=== PAUSE TestAccAzureRMVirtualMachineDataDiskAttachment_destroy
=== CONT  TestAccAzureRMVirtualMachineDataDiskAttachment_destroy
--- PASS: TestAccAzureRMVirtualMachineDataDiskAttachment_destroy (566.00s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/compute/tests	566.040s
```

Fixes #6226
@tombuildsstuff tombuildsstuff added bug service/disk-attachments Virtual Machine Disk Attachments labels Mar 24, 2020
@tombuildsstuff tombuildsstuff added this to the v2.3.0 milestone Mar 24, 2020
@ghost ghost added the size/M label Mar 24, 2020
@tombuildsstuff tombuildsstuff requested a review from a team March 24, 2020 17:28
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@tombuildsstuff
Copy link
Member Author

Tests pass:

Screenshot 2020-03-25 at 09 19 36

@ghost
Copy link

ghost commented Mar 27, 2020

This has been released in version 2.3.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.3.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Apr 24, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked and limited conversation to collaborators Apr 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug service/disk-attachments Virtual Machine Disk Attachments size/M
Projects
None yet
2 participants