Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azuredevops_git_repository_branch doesnt refresh the state when branch is deleted #984

Closed
juicybaba opened this issue Mar 1, 2024 · 0 comments · Fixed by #988
Closed
Labels

Comments

@juicybaba
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and Azure DevOps Provider) Version

Affected Resource(s)

  • azuredevops_git_repository_branch

Terraform Configuration Files

resource "azuredevops_git_repository_branch" "example" {
  repository_id = azuredevops_git_repository.example.id
  name          = "example-branch-name"
  ref_branch    = azuredevops_git_repository.example.default_branch
}

Debug Output

Panic Output

Expected Behavior

when terraform managed branch is removed, the next run should attempt to rebuild the branch instead of throwing an "not found" error.

For your reference, here is the fix on the exact same issue in github provider

Actual Behavior

│ Error: Error reading branch "example-branch-name": Branch "example-branch-name" does not exist in the 2cb2b69e-dcce-4099-907e-f793e5b9d3b0 repository.

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants