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

Error thrown by GetResourceActions isnt handled #131

@avinash221988

Description

@avinash221988

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions