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

Importing vlan fails #87

Closed peterbaumert closed 6 months ago

peterbaumert commented 8 months ago

Hi,

I am somehow not able to import vlans.

resource "phpipam_vlan" "test" {
  number       = 1
  name         = "test"
  l2_domain_id = 1
}

when I do terraform import phpipam_vlan.test 19

it gives me the error

╷
│ Error: vlan_id or number not defined, cannot proceed with reading data
│ 
│ 
╵

phpipam version: v1.7.0 dbversion 41 Terraform v1.7.4 provider registry.terraform.io/lord-kyron/phpipam v1.5.2

peterbaumert commented 8 months ago

created #88 for this. please review.

pavel-z1 commented 6 months ago

PR merged https://github.com/lord-kyron/terraform-provider-phpipam/pull/88