From 5281ac24921795ed933047e5d9ca953add15bdd0 Mon Sep 17 00:00:00 2001 From: Daniel Lowry Date: Fri, 29 Dec 2023 04:30:48 +0000 Subject: [PATCH] fix(vm): Fixed missing default for disk discard (#840) The default value of "ignore" was missing from the disk discard parameter of the terraform module. This commit sets the default to "ignore" instead of the current "". This fixes terraform incorrectly flagging that the state is different than what is currently running on the proxmox node when the discard option isn't defined under the disk object. Signed-off-by: Daniel Lowry Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> --- proxmoxtf/resource/vm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmoxtf/resource/vm.go b/proxmoxtf/resource/vm.go index 203a8759..3f938237 100644 --- a/proxmoxtf/resource/vm.go +++ b/proxmoxtf/resource/vm.go @@ -69,7 +69,7 @@ const ( dvResourceVirtualEnvironmentVMDiskSize = 8 dvResourceVirtualEnvironmentVMDiskIOThread = false dvResourceVirtualEnvironmentVMDiskSSD = false - dvResourceVirtualEnvironmentVMDiskDiscard = "" + dvResourceVirtualEnvironmentVMDiskDiscard = "ignore" dvResourceVirtualEnvironmentVMDiskCache = "none" dvResourceVirtualEnvironmentVMDiskSpeedRead = 0 dvResourceVirtualEnvironmentVMDiskSpeedReadBurstable = 0