Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz authored Nov 22, 2024
2 parents fd882d4 + e71a9ce commit f8c5af7
Showing 1 changed file with 6 additions and 5 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

0 comments on commit f8c5af7

Please sign in to comment.