Commit 77a5502a authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[#343] Die rvd if no VMs

parent b4dedf8b
......@@ -800,9 +800,7 @@ sub _create_vm {
my $err_lxc = $@;
$err .= "\n$err_lxc" if $err_lxc;
}
if (!@vms) {
warn "No VMs found: $err\n" if $self->warn_error;
}
die "No VMs found: $err\n" if $self->warn_error && !@vms;
return \@vms;
}
......
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