Stop libvirt ssh attempts (#15438)

If enable_libvirt is not enabled, do not attempt to ssh to the target device.
This commit is contained in:
Tony Murray
2023-10-11 18:49:16 -05:00
committed by GitHub
parent b7ab5be347
commit 2f33421aed

View File

@@ -39,6 +39,8 @@ trait VminfoLibvirt
if (! Config::get('enable_libvirt')) {
echo 'not configured';
return new Collection;
}
$vms = new Collection;