Skip to content

Commit 1fc4822

Browse files
authored
Merge pull request #11 from enthought/fix-organization-team
Change OrganizationTeam members from a list to a set
2 parents e938124 + 242273a commit 1fc4822

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

code_generator/provider_code_spec.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
},
115115
{
116116
"name": "members",
117-
"list": {
117+
"set": {
118118
"computed_optional_required": "optional",
119119
"description": "List of team members",
120120
"element_type": {
@@ -413,7 +413,7 @@
413413
},
414414
{
415415
"name": "members",
416-
"list": {
416+
"set": {
417417
"computed_optional_required": "computed",
418418
"description": "List of team members",
419419
"element_type": {

docs/data-sources/organization_team.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ data "quay_organization_team" "team" {
4545
### Read-Only
4646

4747
- `description` (String) Markdown description
48-
- `members` (List of String) List of team members
48+
- `members` (Set of String) List of team members
4949
- `role` (String) Team role

docs/resources/organization_team.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ resource "quay_organization_team" "admin" {
4545
### Optional
4646

4747
- `description` (String) Markdown description
48-
- `members` (List of String) List of team members
48+
- `members` (Set of String) List of team members
4949

5050
## Import
5151

internal/datasource_organization_team/organization_team_data_source_gen.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/organization_team_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (d *organizationTeamDataSource) Read(ctx context.Context, req datasource.Re
7878
for _, member := range resTeamData.Members {
7979
memList = append(memList, member.Name)
8080
}
81-
members, diags := types.ListValueFrom(ctx, types.StringType, memList)
81+
members, diags := types.SetValueFrom(ctx, types.StringType, memList)
8282

8383
resp.Diagnostics.Append(diags...)
8484
if resp.Diagnostics.HasError() {

internal/provider/organization_team_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (r *organizationTeamResource) Read(ctx context.Context, req resource.ReadRe
152152
for _, member := range resTeamData.Members {
153153
memList = append(memList, member.Name)
154154
}
155-
members, diags := types.ListValueFrom(ctx, types.StringType, memList)
155+
members, diags := types.SetValueFrom(ctx, types.StringType, memList)
156156

157157
resp.Diagnostics.Append(diags...)
158158
if resp.Diagnostics.HasError() {

internal/resource_organization_team/organization_team_resource_gen.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)