Skip to content

Data source cloudflare_logpush_dataset_field is broken #6467

@adam-prohack

Description

@adam-prohack

Confirmation

  • This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
  • I have searched the issue tracker and my issue isn't already found.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

5.5 and latest

Affected resource(s)

data "cloudflare_logpush_dataset_field"

Terraform configuration files

data "cloudflare_logpush_dataset_field" "main" {
  zone_id    = "id"
  dataset_id = "firewall_events"
}

Link to debug output

https://gist.github.com/adam-prohack/0dd6592ecb1c42d1c8e7cb0a5293398e

Panic output

No response

Expected output

Valid terraform plan

Actual output

  ╷
  │ Error: Provider produced null object
  │ 
  │ Provider "provider[\"registry.terraform.io/cloudflare/cloudflare\"]"
  │ produced a null value for
  │ module.dns.data.cloudflare_logpush_dataset_field.main["fake-url.com-firewall_events"].
  │ 
  │ This is a bug in the provider, which should be reported in the provider's
  │ own issue tracker.
  ╵

Steps to reproduce

  1. Use data source cloudflare_logpush_dataset_field
  2. Run terraform plan

Additional factoids

WTF? Why this data source (cloudflare_logpush_dataset_field) is completely broken and useless.
From May af6b3e8#diff-30ee586b72c2547c082770264d0b218b953098a4bce0e266bf96d999733a1051R49 this code is commented and nobody works to fix it?

References

af6b3e8#diff-30ee586b72c2547c082770264d0b218b953098a4bce0e266bf96d999733a1051R49

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.version/5Categorizes issue or PR as related to version 5 of the provider.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions