From 7cbf383ee4eff5a3d3add797d0532e8716bf145d Mon Sep 17 00:00:00 2001 From: SamuZad Date: Mon, 2 Sep 2024 21:47:12 +0100 Subject: [PATCH] use more consistent endpoint --- bitbucket/resource_project_branching_model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbucket/resource_project_branching_model.go b/bitbucket/resource_project_branching_model.go index 43564506..693ec3d3 100644 --- a/bitbucket/resource_project_branching_model.go +++ b/bitbucket/resource_project_branching_model.go @@ -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())