Skip to content

Commit

Permalink
modifying to assign vlan_id as key
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttyso committed Aug 16, 2021
1 parent 073dab7 commit ffbebcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/domain_vlan_map/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#____________________________________________________________

resource "intersight_fabric_vlan" "vlan_map" {
for_each = { for k, v in var.vlan_map : k => v }
for_each = { for k, v in var.vlan_map : v.vlan_id => v }
auto_allow_on_uplinks = var.auto_allow_on_uplinks
is_native = var.is_native
name = length(regexall("^[0-9]{4}$", each.value.vlan_id)) > 0 ? join("-vl", [
Expand Down

0 comments on commit ffbebcb

Please sign in to comment.