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