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

It's not possible to use custom resource actions #46

Open
MaciejKaras opened this issue Feb 19, 2020 · 0 comments
Open

It's not possible to use custom resource actions #46

MaciejKaras opened this issue Feb 19, 2020 · 0 comments

Comments

@MaciejKaras
Copy link
Contributor

vRA 7.x version
7.6
Terraform version
0.12.19
terraform-provider-vra7 plugin version
0.5.0

Describe the bug
When resource action with name Reconfigure is not defined in resourceActions.Content.Operations i get an error:

 Update is not allowed for resource e64b02c9-6f1f-44ed-904a-eb79e17c5a5d, your entitlement has no Reconfigure action enabled

We only use custom resource actions and have disabled Reconfigure action, because it would expose our custom VM properties, which we don't want to. Part of code responsible for throwing error:

for _, op := range resources.Operations {
	if op.Name == sdk.Reconfigure {
		reconfigureEnabled = true
		reconfigureActionID = op.OperationID
		break
	}
}
// if reconfigure action is not available for any resource of the deployment
// return with an error message
if !reconfigureEnabled {
	return fmt.Errorf("Update is not allowed for resource %v, your entitlement has no Reconfigure action enabled", resources.ID)
}

Are there any plans for supporting custom resource actions? Thanks

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