Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Error thrown by GetResourceActions isnt handled #131

Open
avinash221988 opened this issue Sep 7, 2022 · 0 comments
Open

Error thrown by GetResourceActions isnt handled #131

avinash221988 opened this issue Sep 7, 2022 · 0 comments

Comments

@avinash221988
Copy link

avinash221988 commented Sep 7, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant