Commit 8da2d87f authored by Francesc Guasch's avatar Francesc Guasch
Browse files

fix(backend): connect VM before return

Spotted in issue #700. In some cases the virtual
manager may have been disconnected
parent 6e26da26
......@@ -2350,6 +2350,7 @@ sub search_vm {
die $@ if $@;
for my $vm (@vms) {
$vm->connect if !$vm->vm;
return $vm if ref($vm) eq $class;
}
return;
......
Markdown is supported
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