Skip to content

Commit

Permalink
Fix: Use newclient for tenant datasource (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-ky authored Jan 23, 2024
1 parent 1b34c24 commit c706ce9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion octopusdeploy/data_source_tenants.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ func dataSourceTenantsRead(ctx context.Context, d *schema.ResourceData, meta int
Take: d.Get("take").(int),
}

spaceID := d.Get("space_id").(string)

client := meta.(*client.Client)
existingTenants, err := client.Tenants.Get(query)
existingTenants, err := tenants.Get(client, spaceID, query)
if err != nil {
return diag.FromErr(err)
}
Expand Down

0 comments on commit c706ce9

Please sign in to comment.