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:
parent
4384903049
commit
02b0c98722
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user