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

[Bug]: Data linode_database_engines is not filter #1616

Open
oanhnn opened this issue Oct 11, 2024 · 2 comments
Open

[Bug]: Data linode_database_engines is not filter #1616

oanhnn opened this issue Oct 11, 2024 · 2 comments
Labels
bug issues that report a bug keep prevent github from closing issue

Comments

@oanhnn
Copy link

oanhnn commented Oct 11, 2024

Terraform Version

OpenTofu v1.8.3 on darwin_arm64

Linode Provider Version

v2.29.1

Effected Terraform Resources

data.linode_database_engines

Terraform Config Files

data "linode_database_engines" "mysql" {
  filter {
    name = "engine"
    values = ["mysql"]
    match_by = "exact"
  }
}
output "supported_mysql" {
  value = data.linode_database_engines.mysql.engines.*.id
}

Debug Output

$ TF_LINODE=DEBUG LINODE_DEBUG=1 tofu apply
data.linode_database_engines.mysql: Reading...
data.linode_database_engines.mysql: Read complete after 1s [id=ydYKW7tJhAYcB/HPdwoZZrDLBojkLGRm++rvf7Z7ye+VODZvOimyMgy9x+8AHMmVElA8Fi94w3CZ6IXAPIAD7g==]

Changes to Outputs:
  + supported_mysql = [
      + "mysql/8",
      + "postgresql/13",
      + "postgresql/14",
      + "postgresql/15",
      + "postgresql/16",
    ]

You can apply this plan to save these new output values to the OpenTofu state, without changing any real infrastructure.

Do you want to perform these actions?
  OpenTofu will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes


Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Outputs:

supported_mysql = tolist([
  "mysql/8",
  "postgresql/13",
  "postgresql/14",
  "postgresql/15",
  "postgresql/16",
])

Panic Output

No response

Expected Behavior

Outputs:

supported_mysql = tolist([
  "mysql/8",
])

Actual Behavior

Outputs:

supported_mysql = tolist([
  "mysql/8",
  "postgresql/13",
  "postgresql/14",
  "postgresql/15",
  "postgresql/16",
])

Steps to Reproduce

  • make terraform config file
  • run tofu apply
@oanhnn oanhnn added the bug issues that report a bug label Oct 11, 2024
@ezilber-akamai
Copy link
Contributor

Hi, thanks for reporting this bug! I was able to reproduce the issue and the problem appears to be with the underlying API call. We have passed this along to the appropriate team. Thanks!

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Nov 11, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2024
@zliang-akamai zliang-akamai reopened this Nov 16, 2024
@zliang-akamai zliang-akamai added keep prevent github from closing issue and removed Stale labels Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues that report a bug keep prevent github from closing issue
Projects
None yet
Development

No branches or pull requests

3 participants