Skip to content

Commit

Permalink
fix wonrg key value
Browse files Browse the repository at this point in the history
  • Loading branch information
xpillons committed Sep 8, 2021
1 parent e49bd90 commit 1b056ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tf/lustre.tf
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ resource "azurerm_network_interface_application_security_group_association" "lus
# We need a map to use for_each, so we convert our list into a map by adding a unique key:
for_each = { for entry in local.lustre_oss_asgs: "${entry.oss}.${entry.asg}" => entry }
network_interface_id = azurerm_network_interface.lustre-oss-nic[each.value.oss].id
application_security_group_id = local.create_vnet ? azurerm_application_security_group.asg[each.key].id : data.azurerm_application_security_group.asg[each.key].id
application_security_group_id = local.create_vnet ? azurerm_application_security_group.asg[each.value.asg].id : data.azurerm_application_security_group.asg[each.value.asg].id
}

#
Expand Down

0 comments on commit 1b056ae

Please sign in to comment.