diff --git a/emhttp/plugins/dynamix/include/PCIUpdate.php b/emhttp/plugins/dynamix/include/PCIUpdate.php index 2e6f195cd..0ff452c8c 100644 --- a/emhttp/plugins/dynamix/include/PCIUpdate.php +++ b/emhttp/plugins/dynamix/include/PCIUpdate.php @@ -70,7 +70,7 @@ case "changed": file_put_contents($savedfile,json_encode($saved,JSON_PRETTY_PRINT)); break; case "getvm": - $pcimap = build_pci_vm_map(); + $pcimap = ($libvirt_running == "yes") ? build_pci_vm_map() : []; $pciaddrs = explode(";", $pciaddr); $vmact =[]; diff --git a/sbin/savepcidata b/sbin/savepcidata index 23b2a918a..fe59213d0 100755 --- a/sbin/savepcidata +++ b/sbin/savepcidata @@ -1,5 +1,15 @@ #!/usr/bin/php 0) { + my_logger("PCI Changes not acknowledged skip save","savepcidata."); + return; + } $output = shell_exec('lspci -Dmn'); $devices = [];