Bug: repository data source returns null instead of error when not found #1612
Labels
hacktoberfest
Issues for participation in Hacktoberfest
Status: Stale
Used by stalebot to clean house
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
Terraform Version
Affected Resource(s)
github_repository
Terraform Configuration Files
Debug Output
https://gist.github.com/kbolino/cf42fd736ff5a2befcde4c2fb751300e
Panic Output
N/A
Expected Behavior
An error, since the repository does not exist.
While this behavior may not be strictly required by Terraform, it is how other providers (e.g.
aws
) implement singular data sources. There's also nothing in the docs for the data source that would imply it will silently succeed with null results when the repository doesn't exist.Actual Behavior
The apply succeeds but no output is produced.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
TF_LOG=DEBUG terraform apply
TF_LOG=DEBUG terraform output github_repository_id
An example session:
Important Factoids
N/A
References
N/A
The text was updated successfully, but these errors were encountered: