terraform-provider-vra7 icon indicating copy to clipboard operation
terraform-provider-vra7 copied to clipboard

Error thrown by GetResourceActions isnt handled

Open avinash221988 opened this issue 2 years ago • 0 comments

Hello, We are using vra7_2.0.0 plugin version & trying to delete a instance using vra7. Though the instance isnt deleted on cloud, vra7 terraform provider reports a successful destruction. On debugging, we found that the prior call to catalog-id/api/consumer/resources/<id>/actions is returning a 500 error. Since this error isnt handled in the code, it proceeds and states "Finished destroying the resource vra7_deployment with request id"

Below is the code snippet of the call to GetResourceActions inside resourceVra7DeploymentDelete function, where we believe the error should be handled:

File Name: resource_vra7_deployment.go Line number: 529

deploymentResourceActions, _ := vraClient.GetResourceActions(deploymentID)

Can you kindly validate this issue. I will be raising a pull request for the same.

Thanks, Avi

avinash221988 avatar Sep 07 '22 11:09 avinash221988