From 5d1c8c606d61d91360325228655ccd372848602a Mon Sep 17 00:00:00 2001 From: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Date: Sun, 16 Jun 2024 23:53:16 -0400 Subject: [PATCH] chore(vm): fix regression after storage devices refactoring (#1399) Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> --- proxmoxtf/resource/vm/vm.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/proxmoxtf/resource/vm/vm.go b/proxmoxtf/resource/vm/vm.go index e11cd5b6f..741bcae8f 100644 --- a/proxmoxtf/resource/vm/vm.go +++ b/proxmoxtf/resource/vm/vm.go @@ -1849,23 +1849,6 @@ func vmCreateClone(ctx context.Context, d *schema.ResourceData, m interface{}) d updateBody.SCSIHardware = &scsiHardware } - if len(cdrom) > 0 || len(initialization) > 0 { - ideDevices = vms.CustomStorageDevices{ - "ide0": &vms.CustomStorageDevice{ - Enabled: false, - }, - "ide1": &vms.CustomStorageDevice{ - Enabled: false, - }, - "ide2": &vms.CustomStorageDevice{ - Enabled: false, - }, - "ide3": &vms.CustomStorageDevice{ - Enabled: false, - }, - } - } - if len(cdrom) > 0 && cdrom[0] != nil { cdromBlock := cdrom[0].(map[string]interface{})