Commit e15db363 authored by Nelo Tovar's avatar Nelo Tovar Committed by Francesc Guasch
Browse files

fix(backend): delete the xml from DB when the VM is removed (#729)

delete the xml if domain is base

close #672
parent 9d6b6c39
......@@ -197,6 +197,8 @@ sub remove {
# warn "WARNING: Problem removing ".$self->file_base_img." for ".$self->name
# ." , I will try again later : $@" if $@;
$self->_post_remove_base_domain() if $self->is_base();
eval { $self->domain->undefine() };
die $@ if $@ && $@ !~ /libvirt error code: 42/;
......
Markdown is supported
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