Create the chassis_mac field before the devices that carry it
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful

This commit is contained in:
2026-10-03 18:06:07 +10:00
parent f72f55566d
commit 17f9c2b7c7
+3
View File
@@ -71,4 +71,7 @@ resource "netbox_device" "network" {
serial = each.value.serial
asset_tag = each.value.asset_tag
custom_fields = each.value.chassis_mac != null ? { chassis_mac = lower(each.value.chassis_mac) } : null
# chassis_mac must exist as a field before a device can carry a value for it.
depends_on = [netbox_custom_field.this]
}