Skip to content

Commit

Permalink
wip: return undef when no KVM in localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Apr 17, 2024
1 parent e4f1839 commit 991a38b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Ravada.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6508,7 +6508,10 @@ sub search_vm {
);
$sth->execute($type, $host);
my ($id) = $sth->fetchrow();
return Ravada::VM->open($id) if $id;
my $vm;
$vm = Ravada::VM->open($id) if $id;
return if $host eq 'localhost' && $vm && !$vm->vm;

return if $host ne 'localhost';

my $vms = $self->_create_vm($type);
Expand Down

0 comments on commit 991a38b

Please sign in to comment.