fix: hypervisor started path

This commit is contained in:
Alexis Tyler
2021-07-22 09:16:12 +09:30
parent 8648f958ec
commit 3555473fed

View File

@@ -40,7 +40,7 @@ libvirtDirWatcher.on('all', async (event, fileName) => {
}
// VM hypervisor started
if (event === 'add' && fileName === 'add /var/run/libvirt/qemu/driver.pid') {
if (event === 'add' && fileName === '/var/run/libvirt/libvirt-sock') {
// Start connection
hypervisor = new Hypervisor({ uri });
await hypervisor.connectOpen().catch((error: unknown) => {