Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(d/team): the wrong team can be picked within the "filter by name" fallback #530

Merged
merged 3 commits into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.32.1 (June 21st, 2022)

BUG FIXES:

* Fixed a bug in the latest release where a team data source could be populated with the wrong team. ([#530](https://github.com/hashicorp/terraform-provider-tfe/pull/530))

## 0.32.0 (June 20th, 2022)

0.32.0 is an impactful release that includes several bug fixes, support for [run tasks](https://www.terraform.io/cloud-docs/workspaces/settings/run-tasks#run-tasks) and several breaking changes that you should review carefully.
Expand Down
4 changes: 2 additions & 2 deletions tfe/data_source_team.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func dataSourceTFETeamRead(d *schema.ResourceData, meta interface{}) error {
for {
for _, team := range tl.Items {
if team.Name == name {
d.SetId(tl.Items[0].ID)
d.Set("sso_team_id", tl.Items[0].SSOTeamID)
d.SetId(team.ID)
d.Set("sso_team_id", team.SSOTeamID)
return nil
}
}
Expand Down