mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-12 09:17:41 +03:00
B OpenNebula/one#5526: Fix oneflow recover (#1428)
(cherry picked from commit f18fb4cf537e62f8867274dd417c106c3e76d90c)
This commit is contained in:
parent
84f7c8a2eb
commit
d87c885795
@ -1109,18 +1109,21 @@ class ServiceLCM
|
||||
nodes, up = role.recover_scale(service.report_ready?)
|
||||
|
||||
if up
|
||||
action = :wait_scaleup
|
||||
@event_manager.trigger_action(:wait_scaleup,
|
||||
service.id,
|
||||
client,
|
||||
service.id,
|
||||
name,
|
||||
nodes,
|
||||
service.report_ready?)
|
||||
else
|
||||
action = :wait_scaledown
|
||||
@event_manager.trigger_action(:wait_scaledown,
|
||||
service.id,
|
||||
client,
|
||||
service.id,
|
||||
name,
|
||||
nodes)
|
||||
end
|
||||
|
||||
@event_manager.trigger_action(action,
|
||||
service.id,
|
||||
client,
|
||||
service.id,
|
||||
name,
|
||||
nodes,
|
||||
service.report_ready?)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user