diff --git a/grafana/provider.go b/grafana/provider.go index ec7bac4ba..10c5724b9 100644 --- a/grafana/provider.go +++ b/grafana/provider.go @@ -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])