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 { ...@@ -842,10 +842,7 @@ sub _create_vm {
$err.= $@ if $@; $err.= $@ if $@;
push @vms,($vm) if $vm; push @vms,($vm) if $vm;
} }
die "No VMs found: $err\n" if $self->warn_error && !@vms;
if (!@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