From 99408f55fde397332867d044df51a76017001372 Mon Sep 17 00:00:00 2001 From: MichaelFisher1997 Date: Sat, 28 Feb 2026 21:29:13 +0000 Subject: [PATCH] fix: Use one() function to access network set in outputs --- terraform/outputs.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/outputs.tf b/terraform/outputs.tf index 1ba4221..1f4bd61 100644 --- a/terraform/outputs.tf +++ b/terraform/outputs.tf @@ -5,7 +5,7 @@ output "control_plane_ips" { output "control_plane_private_ips" { description = "Private IPs of control plane nodes" - value = [for cp in hcloud_server.control_plane : cp.network[0].ip] + value = [for cp in hcloud_server.control_plane : one(cp.network).ip] } output "primary_control_plane_ip" { @@ -20,7 +20,7 @@ output "worker_ips" { output "worker_private_ips" { description = "Private IPs of worker nodes" - value = [for worker in hcloud_server.workers : worker.network[0].ip] + value = [for worker in hcloud_server.workers : one(worker.network).ip] } output "ssh_private_key_path" {