Skip to content

Commit

Permalink
resource/teams_list: fix parameters
Browse files Browse the repository at this point in the history
pagination will be come in another PR
  • Loading branch information
jacobbednarz committed May 25, 2022
1 parent fc1c5a3 commit 73c6f6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/provider/resource_cloudflare_teams_list.go
Expand Up @@ -70,7 +70,10 @@ func resourceCloudflareTeamsListRead(ctx context.Context, d *schema.ResourceData
d.Set("type", list.Type)
d.Set("description", list.Description)

listItems, _, err := client.TeamsListItems(ctx, accountID, d.Id())
listItems, _, err := client.TeamsListItems(ctx, cloudflare.TeamsListItemsParams{
AccountID: accountID,
ListID: d.Id(),
})
if err != nil {
return diag.FromErr(fmt.Errorf("error finding Teams List %q: %w", d.Id(), err))
}
Expand Down

0 comments on commit 73c6f6b

Please sign in to comment.