Skip to content

Commit 158f097

Browse files
floklijulienduchesne
authored andcommitted
grafana/provider.go: set NumRetries
Fixes #250.
1 parent e4910ac commit 158f097

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

grafana/provider.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,9 @@ func configure(version string, p *schema.Provider) func(context.Context, *schema
171171

172172
cli.Transport = logging.NewTransport("Grafana", transport)
173173
cfg := gapi.Config{
174-
Client: cli,
175-
OrgID: int64(d.Get("org_id").(int)),
174+
Client: cli,
175+
NumRetries: 10,
176+
OrgID: int64(d.Get("org_id").(int)),
176177
}
177178
if len(auth) == 2 {
178179
cfg.BasicAuth = url.UserPassword(auth[0], auth[1])

0 commit comments

Comments
 (0)