mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-03 12:02:57 +00:00
fix(vm): fix PCI device resource mapping changed (#517)
This commit is contained in:
parent
731dad8794
commit
b1ac87df1d
@ -3945,7 +3945,7 @@ func vmReadCustom(
|
|||||||
|
|
||||||
pciDevices := getPCIInfo(vmConfig, d)
|
pciDevices := getPCIInfo(vmConfig, d)
|
||||||
for pi, pp := range pciDevices {
|
for pi, pp := range pciDevices {
|
||||||
if (pp == nil) || (pp.DeviceIDs == nil) {
|
if (pp == nil) || (pp.DeviceIDs == nil && pp.Mapping == nil) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user