Skip to content

Commit

Permalink
Fix vng example in tests directory
Browse files Browse the repository at this point in the history
  • Loading branch information
acelebanski committed Jan 14, 2025
1 parent 9cf1ede commit 29ec024
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/virtual_network_gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ module "vng" {
instance_settings = each.value.instance_settings
ip_configurations = {
primary = merge(each.value.ip_configurations.primary, {
public_ip_key = try(module.public_ip.pip_ids[each.value.ip_configurations.primary.public_ip_key], null)
public_ip_id = try(module.public_ip.pip_ids[each.value.ip_configurations.primary.public_ip_key], null)
})
secondary = each.value.instance_settings.active_active == true ? merge(each.value.ip_configurations.secondary, {
name = try(each.value.ip_configurations.secondary.name, null)
public_ip_key = try(module.public_ip.pip_ids[each.value.ip_configurations.secondary.public_ip_key], null)
name = try(each.value.ip_configurations.secondary.name, null)
public_ip_id = try(module.public_ip.pip_ids[each.value.ip_configurations.secondary.public_ip_key], null)
}) : null
}
private_ip_address_enabled = each.value.private_ip_address_enabled
Expand Down

0 comments on commit 29ec024

Please sign in to comment.