Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
ca33df5e
Commit
ca33df5e
authored
Jan 13, 2020
by
Francesc Guasch
Browse files
refactor(nodes): do not balance when only 1 node
parent
9485baba
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/Ravada/VM.pm
View file @
ca33df5e
...
...
@@ -1373,7 +1373,7 @@ sub balance_vm($self, $base=undef) {
@vms
=
$self
->
list_nodes
();
}
# warn Dumper([ map { $_->name } @vms]);
return
$self
if
!
@vms
;
return
$self
if
scalar
(
@vms
)
<
2
;
for
my
$vm
(
_random_list
(
@vms
))
{
next
if
!
$vm
->
enabled
();
my
$active
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment