Skip to content

Commit

Permalink
Type conversion required from the TypeInt to int64
Browse files Browse the repository at this point in the history
  • Loading branch information
medains committed Nov 27, 2020
1 parent e9cf446 commit 0e1240a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grafana/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
cli.Transport = logging.NewTransport("Grafana", cli.Transport)
cfg := gapi.Config{
Client: cli,
OrgID: d.Get("org_id").(int64),
OrgID: int64(d.Get("org_id").(int)),
}
if len(auth) == 2 {
cfg.BasicAuth = url.UserPassword(auth[0], auth[1])
Expand Down

0 comments on commit 0e1240a

Please sign in to comment.