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]: warning about attribute allow_deprecated_images #1011

Closed
KiaraGrouwstra opened this issue Oct 13, 2024 · 1 comment
Closed

[Bug]: warning about attribute allow_deprecated_images #1011

KiaraGrouwstra opened this issue Oct 13, 2024 · 1 comment
Assignees
Labels

Comments

@KiaraGrouwstra
Copy link

KiaraGrouwstra commented Oct 13, 2024

What happened?

using this provider with TF_LOG=warn, i end up getting a few messages about allow_deprecated_images, an attribute i hadn't passed myself:

2024-10-13T14:21:11.838+0200 [WARN]  Provider "registry.opentofu.org/hetznercloud/hcloud" produced an invalid plan for hcloud_server.my_server, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .allow_deprecated_images: planned value cty.False for a non-computed attribute

What did you expect to happen?

no warning

Please provide a minimal working example

resource "hcloud_server" "my_server" {
  name        = "node1"
  image       = "debian-11"
  server_type = "cx22"
  public_net {
    ipv4_enabled = true
    ipv6_enabled = true
  }
}
@jooola jooola self-assigned this Oct 14, 2024
@jooola
Copy link
Member

jooola commented Oct 14, 2024

Hey,
The only way for us to fix those warnings is to migrate our resources to the new plugin framework, which is currently being worked on (see #752). You can find additional details about those warnings here: hashicorp/terraform-plugin-sdk#1227

You can safely ignore those warnings. Closing as not planned, as it will resolve itself when migrating to the plugin framework.

@jooola jooola closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants