Skip to content

Commit

Permalink
Merge pull request #4647 from cloudflare/fix-v0.110.0-internal-changes
Browse files Browse the repository at this point in the history
pull in library changes
  • Loading branch information
jacobbednarz authored Nov 22, 2024
2 parents 182a1ed + c463709 commit e71a9ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions internal/framework/service/turnstile/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"strings"

"github.com/cloudflare/cloudflare-go"
cfv1 "github.com/cloudflare/cloudflare-go"
"github.com/cloudflare/terraform-provider-cloudflare/internal/framework/expanders"
"github.com/cloudflare/terraform-provider-cloudflare/internal/framework/flatteners"
Expand Down Expand Up @@ -121,11 +122,11 @@ func (r *TurnstileWidgetResource) Update(ctx context.Context, req resource.Updat

updatedWidget, err := r.client.V1.UpdateTurnstileWidget(ctx, cfv1.AccountIdentifier(data.AccountID.ValueString()), cfv1.UpdateTurnstileWidgetParams{
SiteKey: widget.SiteKey,
OffLabel: widget.OffLabel,
Name: widget.Name,
Domains: widget.Domains,
Mode: widget.Mode,
BotFightMode: widget.BotFightMode,
OffLabel: cloudflare.BoolPtr(widget.OffLabel),
Name: cloudflare.StringPtr(widget.Name),
Domains: &widget.Domains,
Mode: cloudflare.StringPtr(widget.Mode),
BotFightMode: cloudflare.BoolPtr(widget.BotFightMode),
})

if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ func inflateLoggingSettings(log interface{}) *cloudflare.TeamsLoggingSettings {
LogBlocks: l4RuleSettings["log_blocks"].(bool),
},
},
RedactPii: logSettings["redact_pii"].(bool),
RedactPii: cloudflare.BoolPtr(logSettings["redact_pii"].(bool)),
}
}

Expand Down

0 comments on commit e71a9ce

Please sign in to comment.