Skip to content

Commit aecadb9

Browse files
committed
fix: keep the hcloud_server resource name for backwards compatibility
1 parent fc6512a commit aecadb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ output "talos_worker_ids" {
4343
description = "Server IDs of the hetzner talos workers machines"
4444
value = merge(
4545
{ for id, server in hcloud_server.workers_new : id => server.id },
46-
{ for id, server in hcloud_server.workers_legacy : id => server.id }
46+
{ for id, server in hcloud_server.workers : id => server.id }
4747
)
4848
}
4949

server.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ resource "hcloud_server" "control_planes" {
140140
}
141141
}
142142

143-
resource "hcloud_server" "workers_legacy" {
143+
resource "hcloud_server" "workers" {
144144
for_each = { for worker in local.legacy_workers : worker.name => worker }
145145
datacenter = data.hcloud_datacenter.this.name
146146
name = each.value.name

0 commit comments

Comments
 (0)