Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turnstile doesn't handle optional values properly #2412

Closed
2 tasks done
punkeel opened this issue May 6, 2023 · 2 comments · Fixed by #2413
Closed
2 tasks done

Turnstile doesn't handle optional values properly #2412

punkeel opened this issue May 6, 2023 · 2 comments · Fixed by #2413
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log.
Milestone

Comments

@punkeel
Copy link
Member

punkeel commented May 6, 2023

Confirmation

  • My issue isn't already found on the issue tracker.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

❯ terraform -v
Terraform v1.4.6
on darwin_arm64
+ provider registry.terraform.io/cloudflare/cloudflare v4.5.0

Affected resource(s)

terraform

Terraform configuration files

❯ cat cloudflare.tf
terraform {
  required_providers {
    cloudflare = {
      source = "cloudflare/cloudflare"
      version = "~> 4"
    }
  }
}

provider "cloudflare" {
  api_token = "..."
}

    variable "account_id" {
      default = "..."
    }

    resource "cloudflare_turnstile_widget" "example" {
      account_id   = var.account_id
      name         = "My Terraform-managed widget"
      domains      = ["example.com"]
      mode         = "managed"
    }

Link to debug output

https://gist.github.com/punkeel/fe3594fdc40cb6de69be6ad643e21b2e

Panic output

No response

Expected output

No errors

Actual output

╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to cloudflare_turnstile_widget.example, provider "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" produced an unexpected new
│ value: .bot_fight_mode: was null, but now cty.False.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to cloudflare_turnstile_widget.example, provider "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" produced an unexpected new
│ value: .region: was null, but now cty.StringVal("world").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵

Steps to reproduce

  1. terraform apply

Additional factoids

No response

References

No response

@punkeel punkeel added kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 6, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2023

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log. label May 6, 2023
@github-actions github-actions bot added this to the v4.6.0 milestone May 8, 2023
@github-actions
Copy link
Contributor

This functionality has been released in v4.6.0 of the Terraform Cloudflare Provider.

Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant