Closed oocx closed 6 months ago
Terraform 1.8.2 azuredevops provider 1.1.1
azuredevops_git_repository
data "azuredevops_git_repository" "template_repository" { project_id = "some_valid_id" name = "thisrepodoesnotexist" } output "debug_template_repository_id" { value = data.azuredevops_git_repository.template_repository.id } terraform { required_version = "~> 1.8" required_providers { azuredevops = { source = "microsoft/azuredevops" version = "~> 1.1.1" } } } provider "azuredevops" { org_service_url = "https://dev.azure.com/secret" }
https://gist.github.com/oocx/99da19d3b90357730d3bd4c283727bac
A message that tells me that a repository with name 'thisrepodoesnotexist' does not exist in project with id 'some_valid_id'
panic: runtime error: invalid memory address or nil pointer dereference
terraform apply
@xuzhang3 wow that was quick, thanks!
Community Note
Terraform (and Azure DevOps Provider) Version
Terraform 1.8.2 azuredevops provider 1.1.1
Affected Resource(s)
azuredevops_git_repository
data sourceTerraform Configuration Files
Debug Output
https://gist.github.com/oocx/99da19d3b90357730d3bd4c283727bac
Panic Output
Expected Behavior
A message that tells me that a repository with name 'thisrepodoesnotexist' does not exist in project with id 'some_valid_id'
Actual Behavior
panic: runtime error: invalid memory address or nil pointer dereference
Steps to Reproduce
terraform apply