From f1a03bae8732de367559a343a08c061d89a29ae9 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 11 Apr 2024 21:29:37 +0200 Subject: [PATCH] fix: make placement group optional (#5) Reviewed-on: https://gitea.rknet.org/infra/hcloud-server-tf/pulls/5 Co-authored-by: Robert Kaussow Co-committed-by: Robert Kaussow --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 7c52095..c450908 100644 --- a/main.tf +++ b/main.tf @@ -38,7 +38,7 @@ resource "hcloud_server" "server" { backups = try(each.value.backups, false) keep_disk = try(each.value.keep_disk, false) user_data = try(each.value.user_data, null) - placement_group_id = each.value.placement_group + placement_group_id = try(each.value.placement_group, null) lifecycle { ignore_changes = [