Skip to content

Commit

Permalink
Merge pull request #208 from barrywhart/fix-issue-207-enabling-produc…
Browse files Browse the repository at this point in the history
…tion-branch-never-gets-fixed

Attempting to enable the production branch_type never seems to get "fixed"
  • Loading branch information
DrFaust92 authored Jun 4, 2024
2 parents bb787af + 30f949f commit 8de67e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bitbucket/resource_branching_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ func flattenBranchModel(rp *BranchModel, typ string) []interface{} {
"name": rp.Name,
}

// Production has an "enabled" field that is not present in development.
if typ == "production" {
m["enabled"] = rp.Enabled
}

return []interface{}{m}
}

Expand Down

0 comments on commit 8de67e9

Please sign in to comment.