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

Adding missing Category for Workspace Variable #141

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jtyr
Copy link
Contributor

@jtyr jtyr commented May 11, 2022

This is a draft PR that is adding missing functionality to change variable category once the variable was already created in TFC. It's a draft because there is missing functionality to set the variable category in the upstream TFE SDK. I have created PR to add the functionality to the SDK so as soon as that's merged, I will amend this PR with updated upstream SDK.

@jtyr
Copy link
Contributor Author

jtyr commented Jul 5, 2022

I have upgraded the go-tfe dependency to the latest version to get the Category support available. As the go-tfe interface changed a little bit, I had to modify some other bits of the code to reflect that.

@jtyr jtyr marked this pull request as ready for review July 5, 2022 10:41
@@ -212,6 +215,7 @@ func (t *TerraformCloudClient) UpdateTerraformVariables(variables []*tfc.Variabl
Key: &v.Key,
Value: &v.Value,
HCL: &v.HCL,
Category: &v.Category,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main change. The rest is only to support the latest go-tfe version.

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

Successfully merging this pull request may close these issues.

1 participant