Allow the mocked global ids during init
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user