Commit aa0220f4 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[#202] check the VM works before adding to the list

parent 01b529f0
......@@ -900,7 +900,8 @@ sub _list_remote_vms($self ) {
my @vms;
while ( my $row = $sth->fetchrow_hashref) {
my $vm = Ravada::VM->open( $row->{id});
my $vm;
eval { $vm = Ravada::VM->open( $row->{id}) };
push @vms,( $vm ) if $vm && $vm->vm;
}
$sth->finish;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment