Skip to content

Commit

Permalink
[UPC#112] removes hybernated failed domains
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Mar 30, 2017
1 parent 763727d commit 4b9e725
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/lib/Test/Ravada.pm
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ sub _remove_old_domains_kvm {
}
if $domain->is_active;
warn "WARNING: error $@ trying to shutdown ".$domain->get_name if $@;

$domain->managed_save_remove()
if $domain->has_managed_save_image();

eval { $domain->undefine };
warn $@ if $@;
}
Expand Down

0 comments on commit 4b9e725

Please sign in to comment.