Commit 908d3d9f authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[#53] Remove all defined domains from the test

parent 62766794
......@@ -99,6 +99,8 @@ SKIP: {
for (@domains) {
$_->shutdown_now($USER);
}
for (@domains) {
$_->remove($USER);
}
};
......
......@@ -115,7 +115,7 @@ sub _remove_old_domains_kvm {
my $vm = rvd_back()->search_vm('KVM');
my $base_name = base_domain_name();
for my $domain ( $vm->vm->list_domains ) {
for my $domain ( $vm->vm->list_defined_domains ) {
next if $domain->get_name !~ /^$base_name/;
warn "removing ".$domain->get_name;
eval {
......
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