Skip to content

Commit c1913e5

Browse files
committed
remove redundant lookup
1 parent 2b72e70 commit c1913e5

File tree

1 file changed

+3
-3
lines changed
  • modules/interconnect_attachment

1 file changed

+3
-3
lines changed

modules/interconnect_attachment/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ module "interface" {
4545
# Peer IP Address must not contain the subnet mask, else will throw an invalid IP address error.
4646
peer_ip_address = element(split("/", google_compute_interconnect_attachment.attachment.customer_router_ip_address), 0)
4747
peer_asn = var.peer.peer_asn
48-
advertised_route_priority = lookup(var.peer, "advertised_route_priority", null)
49-
bfd = lookup(var.peer, "bfd", null)
50-
md5_authentication_key = lookup(var.peer, "md5_authentication_key", null)
48+
advertised_route_priority = var.peer.advertised_route_priority
49+
bfd = var.peer.bfd
50+
md5_authentication_key = var.peer.md5_authentication_key
5151
}]
5252
}

0 commit comments

Comments
 (0)