Skip to content

Commit

Permalink
fix: convertion to int64
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Oct 24, 2024
1 parent 299a16c commit d633cc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func New(version string, tenant *string) func() *schema.Provider {

p.ConfigureContextFunc = func(_ context.Context, d *schema.ResourceData) (interface{}, diag.Diagnostics) {
url := strings.TrimRight(d.Get("url").(string), "/")
timeout := d.Get("timeout").(int64)
timeout := d.Get("timeout").(int)
username := d.Get("username").(string)
password := d.Get("password").(string)
jwt := d.Get("jwt").(string)
Expand All @@ -140,7 +140,7 @@ func New(version string, tenant *string) func() *schema.Provider {

var diags diag.Diagnostics

c, err := NewClient(url, timeout, &username, &password, &jwt, &apiToken, &extraHeaders, &tenantId, &keepOriginalSource)
c, err := NewClient(url, int64(timeout), &username, &password, &jwt, &apiToken, &extraHeaders, &tenantId, &keepOriginalSource)
if err != nil {
return nil, diag.FromErr(err)
}
Expand Down

0 comments on commit d633cc6

Please sign in to comment.