Commit 168c9079 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

wip(backend): search machine in another node if not active

issue #1188
parent 24cd62ef
......@@ -1449,6 +1449,8 @@ sub _pre_remove_domain($self, $user, @) {
# check the node is active
# search the domain in another node if it is not
sub _check_active_node($self) {
return $self->_vm if $self->_vm->is_active(1);
......@@ -1456,7 +1458,9 @@ sub _check_active_node($self) {
next if !$node->is_local;
my $domain_active = $node->search_domain_by_id($self->id);
next if !$domain_active;
return $self->_vm;
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