Skip to content

[Bug]: Can't remove floating_ip description #1090

Open
@dmitrii-palisaderesearch

Description

What happened?

My network has floating IPs with descriptions. When I remove the descriptions and apply, the apply goes through successfully, but the changes do not happen.

Changing descriptions from one string to another works fine.

What did you expect to happen?

After removing descriptions and applying, I expect the descriptions to be removed.

Please provide a minimal working example

terraform {
  required_providers {
    hcloud = {
      source = "hetznercloud/hcloud"
    }
  }
  required_version = ">= 1.0"
}

variable "hcloud_token" {sensitive=true}
provider "hcloud" {token = "${var.hcloud_token}"}

resource "hcloud_floating_ip" "floating_ip-a" {
  home_location     = "ash"
  name              = "floating_ip-a"
  description       = "AAA" # mark
  type              = "ipv4"
}
terraform apply # deploy floating ip with description
# drop line with mark
terraform apply # should remove description
terraform apply # should show clean plan but will attempt to remove description again

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpinnedrequires: plugin-frameworkThe issue can be fixed after the resource has be migrated to the plugin framework.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions