0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 11:02:59 +00:00

fix(vm): fix PCI device resource mapping changed (#517)

This commit is contained in:
Risto Oikarinen 2023-08-22 15:16:28 +03:00 committed by GitHub
parent 731dad8794
commit b1ac87df1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}