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

[Bug]: Nil pointer dereference when pushing new datasource to grafana server #448

Closed
cccs-ajstong opened this issue May 30, 2024 · 1 comment · Fixed by #450
Closed

[Bug]: Nil pointer dereference when pushing new datasource to grafana server #448

cccs-ajstong opened this issue May 30, 2024 · 1 comment · Fixed by #450
Labels
bug Something isn't working triage

Comments

@cccs-ajstong
Copy link

Grizzly Version

0.4.2

Expected Behavior

When we do a grr push on a datasource that doesn't exist yet on a grafana server, we expect that datasource to be created by grizzly on the grafana server.

Actual Behavior

A nil pointer dereference error happens in grizzly/pkg/grafana/datasource-handler.go line 46 since existing is nil because it is a new datasource (grizzly/pkg/grizzly/workflow.go line 420).

Steps to Reproduce

Just using grr push on a datasource that is not on the grafana server.
grr push datasource.yaml -t Datasource.uid

@malcolmholmes
Copy link
Contributor

This should be fixed by #450.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants