Skip to content

Commit

Permalink
feat: Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
atanaspam committed Feb 12, 2023
1 parent 30a18ae commit 50f2ee2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/atanaspam/terraform-provider-splunkacs
go 1.18

require (
github.com/atanaspam/splunkacs-api-go v1.2.0
github.com/atanaspam/splunkacs-api-go v1.5.0
github.com/hashicorp/terraform-plugin-docs v0.13.0
github.com/hashicorp/terraform-plugin-framework v1.1.1
github.com/hashicorp/terraform-plugin-framework-validators v0.10.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj
github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI=
github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
github.com/atanaspam/splunkacs-api-go v1.2.0 h1:9N+SKRdel1LdI8tUuko++X5TfYRNY5fY6dIsPqqvteM=
github.com/atanaspam/splunkacs-api-go v1.2.0/go.mod h1:8miDXQ0y+j5gIU4BxGhZYUDiOV11y5tSjsf0JY1LXkk=
github.com/atanaspam/splunkacs-api-go v1.5.0 h1:922C8n9uOUxAAtGthyEi0XUIR+p7XpMybul4a14yRGs=
github.com/atanaspam/splunkacs-api-go v1.5.0/go.mod h1:8miDXQ0y+j5gIU4BxGhZYUDiOV11y5tSjsf0JY1LXkk=
github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY=
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
Expand Down
6 changes: 3 additions & 3 deletions internal/splunkacs/resource_hec_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,11 @@ func waitHecCreatePropagation(ctx context.Context, client *splunkacs.SplunkAcsCl
retries := 20
for i < retries {
tflog.Debug(ctx, fmt.Sprintf("waiting for HEC token to become available. Retry: %d", i))
hecResp, httpResp, err := client.GetHecToken(hecCreateResponse.CreateResponseItem.Spec.Name)
if err != nil && httpResp.StatusCode != 404 {
hecResp, apiResp, err := client.GetHecToken(hecCreateResponse.CreateResponseItem.Spec.Name)
if err != nil && apiResp.StatusCode != 404 {
tflog.Error(ctx, "encountered an unexpected error while waiting for HEC to become avaialable")
return nil, err
} else if err != nil && httpResp.StatusCode == 404 {
} else if err != nil && apiResp.StatusCode == 404 {
i++
time.Sleep(10 * time.Second)
continue
Expand Down
6 changes: 3 additions & 3 deletions internal/splunkacs/resource_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@ func waitIndexPropagation(ctx context.Context, client *splunkacs.SplunkAcsClient
retries := 20
for i < retries {
tflog.Info(ctx, fmt.Sprintf("waiting for Index to become eventually consistent. Retry: %d\n", i))
indexResp, httpResp, err := client.GetIndex(indexName)
if err != nil && httpResp.StatusCode != 404 {
indexResp, apiResp, err := client.GetIndex(indexName)
if err != nil && apiResp.StatusCode != 404 {
tflog.Error(ctx, "encountered an unexpected error while waiting for Index to become eventually consistent")
return nil, err
} else if err != nil && httpResp.StatusCode == 404 {
} else if err != nil && apiResp.StatusCode == 404 {
i++
time.Sleep(10 * time.Second)
continue
Expand Down

0 comments on commit 50f2ee2

Please sign in to comment.