Skip to content

Commit

Permalink
fix: #290 virtual network ourputs
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-FFFFFF committed Dec 8, 2023
1 parent 6f41b98 commit 1da0bd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ locals {

# virtual_networks_merged is a map of virtual networks created, if the module has been enabled.
# This is used in the outputs.tf file to return the virtual network resource ids.
virtual_network_resource_ids = try(module.virtualnetwork[0].virtual_network_resource_ids, {})
virtual_network_resource_ids = var.virtual_network_enabled ? module.virtualnetwork[0].virtual_network_resource_ids : {}

# resource_group_ids is a map of resource groups created, if the module has been enabled.
# This is used in the outputs.tf file to return the resource group ids.
virtual_network_resource_group_ids = try(module.virtualnetwork[0].resource_group_ids, {})
virtual_network_resource_group_ids = var.virtual_network_enabled ? module.virtualnetwork[0].resource_group_ids : {}
}

0 comments on commit 1da0bd8

Please sign in to comment.