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

Handle 404 response on Read #12

Merged
merged 1 commit into from
Jan 12, 2018
Merged

Handle 404 response on Read #12

merged 1 commit into from
Jan 12, 2018

Conversation

sl1pm4t
Copy link
Contributor

@sl1pm4t sl1pm4t commented Jan 12, 2018

If a datasource or alert notification have been deleted out of band (not using Terraform) the Grafana API will return a 404 error. The standard behaviour in the scenario is to remove the resource from the Terraform state, by setting a blank ID.
This was already happening in the Dashboard resource.

If a datasource or alert notification have been deleted out of band (not using Terraform) the Grafana API will return a 404 error. The standard behaviour in the scenario is to remove the resource from the Terraform state, by setting a blank ID.
This was already happening in the Dashboard resource.
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for this 👍

@tombuildsstuff tombuildsstuff merged commit 06c5faa into grafana:master Jan 12, 2018
tombuildsstuff added a commit that referenced this pull request Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants