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

Add identity details to error messages #987

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

horjulf
Copy link
Contributor

@horjulf horjulf commented Mar 1, 2021

This adds more detail to the identity data resources error messages, making it possible to identify which entry is erroring when using for_each or count resources.

Before:

Error: no Identity Entity found

  on main.tf line 9, in data "vault_identity_entity" "user":
   9: data "vault_identity_entity" "user" {

After:

Error: no Identity Entity found 'map[name:john@doe.com]'

  on main.tf line 9, in data "vault_identity_entity" "user":
   9: data "vault_identity_entity" "user" {

@ghost ghost added size/XS labels Mar 1, 2021
@hashicorp-cla
Copy link

hashicorp-cla commented Mar 1, 2021

CLA assistant check
All committers have signed the CLA.

@jasonodonnell jasonodonnell merged commit f44b6e9 into hashicorp:master Jun 16, 2021
davidmontoyago pushed a commit to davidmontoyago/terraform-provider-vault that referenced this pull request Aug 17, 2021
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 this pull request may close these issues.

None yet

3 participants