Skip to content

Commit

Permalink
Fix not known at plan time issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredfholgate committed Sep 26, 2024
1 parent a349429 commit 5a5d3d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/complete_multi_region/locals-config.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
config_file_extension = replace(lower(element(local.config_file_split, length(local.config_file_split) - 1)), local.const_yml, local.const_yaml)
config_file_name = basename(var.configuration_file_path)
config_file_name = var.configuration_file_path == "" ? "config-hub-and-spoke-vnet.yaml" : basename(var.configuration_file_path)
config_file_split = split(".", local.config_file_name)
const_yaml = "yaml"
const_yml = "yml"
Expand Down
2 changes: 1 addition & 1 deletion templates/complete_multi_region/locals-private-dns.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
private_dns_virtual_networks_hub_and_spoke_vnet = (local.hub_networking_enabled ?
{ for key, value in try(module.hub_and_spoke_vnet[0].virtual_networks, {}) : key => { vnet_resource_id = value.id } } :
{ for key, value in try(local.module_hub_and_spoke_vnet.hub_virtual_networks, {}) : key => { vnet_resource_id = module.hub_and_spoke_vnet[0].virtual_networks[key].id } } :
{}
)
private_dns_virtual_networks_virtual_wan = (local.virtual_wan_enabled ?
Expand Down

0 comments on commit 5a5d3d7

Please sign in to comment.