lord-kyron / terraform-provider-phpipam

Terrform provider for PHPIPAM
https://registry.terraform.io/providers/lord-kyron/phpipam/latest
Apache License 2.0
54 stars 30 forks source link

Terraform permadiff on field custom_fields #95

Open MatthieuuC opened 1 month ago

MatthieuuC commented 1 month ago

Hi,

When using the phpipam_first_free_subnet resource I always have a Terraform diff on custom_fields

Example

 data "phpipam_subnet" "main" {
  subnet_address = "10.191.0.0"
  subnet_mask    = 18
}
resource "phpipam_first_free_subnet" "serverless_subnets" {
  section_id       = data.phpipam_subnet.main.section_id
  parent_subnet_id = data.phpipam_subnet.main.subnet_id
  subnet_mask      = 28
  description      = "Used by xxx"
}
  ~ resource "phpipam_first_free_subnet" "serverless_subnets" {
      + custom_fields          = (known after apply)
        id                     = "102"
        # (28 unchanged attributes hidden)
    }

Even after apply, the diff is still here.

lord-kyron commented 1 month ago

@pavel-z1 FYI