Skip to content

Commit e3dc067

Browse files
committed
[TF-7737] Fix incorrect attribute type for RegistryModule.VCSRepo.Tags
1 parent f08e4b0 commit e3dc067

3 files changed

+5
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<!-- Add CHANGELOG entry to this section for any PR awaiting the next release -->
33
<!-- Please also include if this is a Bug Fix, Enhancement, or Feature -->
44

5+
## Bug Fixes
6+
* [TF-7737] Fix incorrect attribute type for `RegistryModule.VCSRepo.Tags`
7+
58
# v.1.35.0
69
## Features
710
* Added BETA support for private module registry tests by @hashimoon [#781](https://github.com/hashicorp/go-tfe/pull/781)

registry_module.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ type RegistryModuleVCSRepoUpdateOptions struct {
298298
// When a value for Tags is provided, the Branch field is removed on the server
299299
// **Note: This field is still in BETA and subject to change.**
300300
Branch *string `json:"branch,omitempty"`
301-
Tags *string `json:"tags,omitempty"`
301+
Tags *bool `json:"tags,omitempty"`
302302
}
303303

304304
// List all the registory modules within an organization.

registry_module_integration_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ func TestRegistryModuleUpdateWithVCSConnection(t *testing.T) {
383383

384384
options = RegistryModuleUpdateOptions{
385385
VCSRepo: &RegistryModuleVCSRepoUpdateOptions{
386-
Tags: String("1.0.0"),
386+
Tags: Bool(true),
387387
},
388388
}
389389
rm, err = client.RegistryModules.Update(ctx, RegistryModuleID{

0 commit comments

Comments
 (0)