Commit c3322164 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[test] fixed volatile domains may disappear after shutdown

parent acf99340
......@@ -183,7 +183,8 @@ sub _remove_old_domains_vm {
eval { $domain->shutdown_now($USER_ADMIN); };
warn "Error shutdown ".$domain->name." $@" if $@ && $@ !~ /No DB info/i;
eval {$domain->remove( $USER_ADMIN ) };
$domain = $vm->search_domain($dom_name);
eval {$domain->remove( $USER_ADMIN ) } if $domain;
if ( $@ && $@ =~ /No DB info/i ) {
eval { $domain->domain->undefine() if $domain->domain };
}
......
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