Commit def2e941 authored by Francesc Guasch's avatar Francesc Guasch Committed by Francesc Guasch
Browse files

[#343] Die rvd if no VMs

parent eb191151
......@@ -842,10 +842,7 @@ sub _create_vm {
$err.= $@ if $@;
push @vms,($vm) if $vm;
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;
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