Skip to content

Commit 2a7c753

Browse files
committed
Fix permadiff in output
1 parent 27c1e6a commit 2a7c753

File tree

2 files changed

+2
-31
lines changed

2 files changed

+2
-31
lines changed

examples/network_connectivity_center/main.tf

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ module "network_connectivity_center" {
4747
virtual_machine = google_compute_instance.router_appliance_1.id
4848
ip_address = google_compute_instance.router_appliance_1.network_interface[0].network_ip
4949
},
50-
{
51-
virtual_machine = google_compute_instance.router_appliance_2.id
52-
ip_address = google_compute_instance.router_appliance_2.network_interface[0].network_ip
53-
}
50+
5451
]
5552
location = var.instance_region
5653
site_to_site_data_transfer = false
@@ -248,24 +245,3 @@ resource "google_compute_instance" "router_appliance_1" {
248245
}
249246
}
250247
}
251-
252-
resource "google_compute_instance" "router_appliance_2" {
253-
name = "fake-router-appliance-2"
254-
machine_type = "e2-medium"
255-
project = var.project_id
256-
can_ip_forward = true
257-
zone = random_shuffle.zone.result[0]
258-
259-
boot_disk {
260-
initialize_params {
261-
image = "debian-cloud/debian-11"
262-
}
263-
}
264-
265-
network_interface {
266-
subnetwork = module.router_appliance_spoke_vpc.subnets["${var.instance_region}/router-appliance-subnet-01"].id
267-
access_config {
268-
network_tier = "PREMIUM"
269-
}
270-
}
271-
}

examples/network_connectivity_center/outputs.tf

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@ output "project_id" {
2121

2222
output "ncc_hub_name" {
2323
description = "Name of the NCC Hub (required for testing)"
24-
value = module.network_connectivity_center.ncc_hub.name
25-
}
26-
27-
output "ncc_hub" {
28-
description = "The NCC Hub object"
29-
value = module.network_connectivity_center.ncc_hub
24+
value = element(reverse(split("/", module.network_connectivity_center.ncc_hub.name)), 0)
3025
}
3126

3227
output "vpc_spokes" {

0 commit comments

Comments
 (0)