From b1ac87df1df96a9172fee7cb4aa5934c6afb4ef1 Mon Sep 17 00:00:00 2001 From: Risto Oikarinen Date: Tue, 22 Aug 2023 15:16:28 +0300 Subject: [PATCH] fix(vm): fix PCI device resource mapping changed (#517) --- 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 e5e16454..08726eaf 100644 --- a/proxmoxtf/resource/vm.go +++ b/proxmoxtf/resource/vm.go @@ -3945,7 +3945,7 @@ func vmReadCustom( pciDevices := getPCIInfo(vmConfig, d) for pi, pp := range pciDevices { - if (pp == nil) || (pp.DeviceIDs == nil) { + if (pp == nil) || (pp.DeviceIDs == nil && pp.Mapping == nil) { continue }