1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #-: fix minor bugs in OneFlow (#4577)

This commit is contained in:
Alejandro Huertas Herrero 2020-04-22 09:56:50 +02:00 committed by GitHub
parent 4384903049
commit 02b0c98722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -865,7 +865,7 @@ class ServiceLCM
service.roles.each do |name, role|
next unless role.can_recover_scale?
nodes, up = role.recover_scale
nodes, up = role.recover_scale(service.report_ready?)
if up
action = :wait_scaleup

View File

@ -746,11 +746,11 @@ module OpenNebula
# def recover_warning
# end
def recover_scale
def recover_scale(report)
rc = nil
if @body['scale_way'] == SCALE_WAYS['UP']
rc = [recover_deploy, true]
rc = [recover_deploy(report), true]
elsif @body['scale_way'] == SCALE_WAYS['DOWN']
rc = [recover_undeploy, false]
end