Skip to content

Commit

Permalink
use more consistent endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuZad committed Sep 2, 2024
1 parent 8de67e9 commit 7cbf383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitbucket/resource_project_branching_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func resourceProjectBranchingModelsRead(ctx context.Context, d *schema.ResourceD
if err != nil {
return diag.FromErr(err)
}
branchingModelsReq, _ := client.Get(fmt.Sprintf("2.0/workspaces/%s/projects/%s/branching-model", workspace, repo))
branchingModelsReq, _ := client.Get(fmt.Sprintf("2.0/workspaces/%s/projects/%s/branching-model/settings", workspace, repo))

if branchingModelsReq.StatusCode == http.StatusNotFound {
log.Printf("[WARN] Project Branching Model (%s) not found, removing from state", d.Id())
Expand Down

0 comments on commit 7cbf383

Please sign in to comment.