Allow the mocked global ids during init
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful

This commit is contained in:
2026-10-03 18:40:08 +10:00
parent a3984bf0cd
commit 25e5dfd9b3
+3 -2
View File
@@ -34,7 +34,8 @@ locals {
# Device types, device roles and the dhcp IPAM role are global objects owned by
# the netbox-global unit; take their ids from it rather than create them twice.
# Ids are mocked for plan so a fresh estate can be planned before it is applied.
# Ids are mocked until the global unit is applied, so a fresh estate can still
# init and plan.
dependency "global" {
config_path = "../../global"
@@ -43,7 +44,7 @@ dependency "global" {
device_role_ids = { for r in local.wanted_device_roles : r => 0 }
dhcp_role_id = 0
}
mock_outputs_allowed_terraform_commands = ["validate", "plan"]
mock_outputs_allowed_terraform_commands = ["init", "validate", "plan"]
}
terraform {