Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredfholgate committed Dec 11, 2024
1 parent 481e6e6 commit 1499d5c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
output "dns_server_ip_addresses" {
value = { for key, value in local.hub_virtual_networks : key => try(value.hub_router_ip_address, try(module.hub_and_spoke_vnet.firewalls[key].private_ip_address, null)) }
}
output "dns_server_ip_addresses" {
value = { for key, value in local.hub_virtual_networks : key => try(value.hub_router_ip_address, try(module.hub_and_spoke_vnet.firewalls[key].private_ip_address, null)) }
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
locals {
virtual_network_gateways_express_route = {
for virtual_hub_key, virtual_hub_value in var.virtual_hubs : virtual_hub_key => merge({
virtual_hub_key = virtual_hub_key
}, virtual_hub_value.virtual_network_gateways.express_route) if try(virtual_hub_value.virtual_network_gateways.express_route, null) != null
}
virtual_network_gateways_vpn = {
for virtual_hub_key, virtual_hub_value in var.virtual_hubs : virtual_hub_key => merge({
virtual_hub_key = virtual_hub_key
}, virtual_hub_value.virtual_network_gateways.vpn) if try(virtual_hub_value.virtual_network_gateways.vpn, null) != null
}
}
locals {
virtual_network_gateways_express_route = {
for virtual_hub_key, virtual_hub_value in var.virtual_hubs : virtual_hub_key => merge({
virtual_hub_key = virtual_hub_key
}, virtual_hub_value.virtual_network_gateways.express_route) if try(virtual_hub_value.virtual_network_gateways.express_route, null) != null
}
virtual_network_gateways_vpn = {
for virtual_hub_key, virtual_hub_value in var.virtual_hubs : virtual_hub_key => merge({
virtual_hub_key = virtual_hub_key
}, virtual_hub_value.virtual_network_gateways.vpn) if try(virtual_hub_value.virtual_network_gateways.vpn, null) != null
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
output "dns_server_ip_addresses" {
value = { for key, value in local.virtual_hubs : key => try(module.hub_and_spoke_vnet.firewall_ip_addresses_by_hub_key[key].private_ip_address, null) }
}
output "dns_server_ip_addresses" {
value = { for key, value in local.virtual_hubs : key => try(module.hub_and_spoke_vnet.firewall_ip_addresses_by_hub_key[key].private_ip_address, null) }
}
6 changes: 3 additions & 3 deletions templates/platform_landing_zone/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
output "dns_server_ip_addresses" {
value = var.connectivity_type == "none" ? {} : (var.connectivity_type == "hub-and-spoke" ? module.hub_and_spoke_vnet.dns_server_ip_addresses : module.virtual_wan.dns_server_ip_addresses)
}
output "dns_server_ip_addresses" {
value = var.connectivity_type == "none" ? {} : (var.connectivity_type == "hub-and-spoke" ? module.hub_and_spoke_vnet.dns_server_ip_addresses : module.virtual_wan.dns_server_ip_addresses)
}

0 comments on commit 1499d5c

Please sign in to comment.