fix: Use one() function to access network set in outputs
This commit is contained in:
@@ -5,7 +5,7 @@ output "control_plane_ips" {
|
|||||||
|
|
||||||
output "control_plane_private_ips" {
|
output "control_plane_private_ips" {
|
||||||
description = "Private IPs of control plane nodes"
|
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" {
|
output "primary_control_plane_ip" {
|
||||||
@@ -20,7 +20,7 @@ output "worker_ips" {
|
|||||||
|
|
||||||
output "worker_private_ips" {
|
output "worker_private_ips" {
|
||||||
description = "Private IPs of worker nodes"
|
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" {
|
output "ssh_private_key_path" {
|
||||||
|
|||||||
Reference in New Issue
Block a user