terraform-provider-vra7
terraform-provider-vra7 copied to clipboard
Error thrown by GetResourceActions isnt handled
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