Skip to content

Commit 08d7167

Browse files
authored
fix: Allow next_hop_gateway to be passed for non-internet routes (#242)
1 parent bfa4606 commit 08d7167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/routes-beta/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "google_compute_route" "route" {
2828
description = lookup(var.routes[count.index], "description", null)
2929
tags = compact(split(",", lookup(var.routes[count.index], "tags", "")))
3030
dest_range = lookup(var.routes[count.index], "destination_range", null)
31-
next_hop_gateway = lookup(var.routes[count.index], "next_hop_internet", "false") == "true" ? "default-internet-gateway" : ""
31+
next_hop_gateway = lookup(var.routes[count.index], "next_hop_internet", "false") == "true" ? "default-internet-gateway" : null
3232
next_hop_ip = lookup(var.routes[count.index], "next_hop_ip", null)
3333
next_hop_instance = lookup(var.routes[count.index], "next_hop_instance", null)
3434
next_hop_instance_zone = lookup(var.routes[count.index], "next_hop_instance_zone", null)

0 commit comments

Comments
 (0)