From 939fd10249168a47f4df8bae5ffae7bdd423e943 Mon Sep 17 00:00:00 2001 From: Jos van Bakel Date: Fri, 27 Mar 2020 16:24:58 +0100 Subject: [PATCH] Cleanup --- proxmox/qemu_structure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox/qemu_structure.go b/proxmox/qemu_structure.go index 4c942a76..bfba1d38 100644 --- a/proxmox/qemu_structure.go +++ b/proxmox/qemu_structure.go @@ -392,7 +392,7 @@ func flattenVmQemu(vmr *pxapi.VmRef, config *pxapi.ConfigQemu, d *schema.Resourc // Disks. configDisksSet := d.Get("disk").(*schema.Set) - activeDisksSet := flattenDevices(d.Get("disk").(*schema.Set), config.QemuDisks) + activeDisksSet := flattenDevices(configDisksSet, config.QemuDisks) d.Set("disk", activeDisksSet) // Display.