Skip to content

Commit 0e1240a

Browse files
committed
Type conversion required from the TypeInt to int64
1 parent e9cf446 commit 0e1240a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grafana/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
5858
cli.Transport = logging.NewTransport("Grafana", cli.Transport)
5959
cfg := gapi.Config{
6060
Client: cli,
61-
OrgID: d.Get("org_id").(int64),
61+
OrgID: int64(d.Get("org_id").(int)),
6262
}
6363
if len(auth) == 2 {
6464
cfg.BasicAuth = url.UserPassword(auth[0], auth[1])

0 commit comments

Comments
 (0)