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

This commit is contained in:
Alejandro Huertas Herrero authored and GitHub committed 2020-04-22 09:56:50 +02:00
1 parent 4384903049
commit 02b0c98722
2 files changed
+3 -3

No files matched your search

+1 -1
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
+2 -2
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