From 07c5c8cd4178ccfa10e89a79cee696cda5a9a6d6 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 11 Apr 2024 21:21:23 +0200 Subject: [PATCH] fix: make placement group optional --- 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 = [ -- 2.24.4