Closed trombonax closed 2 months ago
Hey @trombonax,
thank you very much for reporting this issue! This was recently refactored in #855, #881 and #817 and we did not catch this with our test suite.
The issue happens once you assign an empty map to labels: labels = {}
which happens in your code in try(var.labels, null)
, as var.labels
is set to {}
by default.
We are working on a fix and an extended test suite to make sure this does not get reintroduced. Until that is released you can fix your issue, but using null
instead of {}
as the default for your labels. I think you can even remove the try()
.
@apricote hello with provider 1.47.0 is all fine, I'm doesn't see reported issue anymore thank you !
What happened?
opentofu-1.6.2
terraform-1.8.2
provider[registry.terraform.io/hetznercloud/hcloud] = 1.46.1
provider[registry.opentofu.org/hetznercloud/hcloud] = 1.46.1
What did you expect to happen?
simply ssh key add as resource via module
Please provide a minimal working example
module "hcloud-ssh-key":
module call from manifest: