Skip to content

Commit

Permalink
B OpenNebula#5235: force update cardinality in service (OpenNebula#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Huertas Herrero authored and atodorov-storpool committed Jan 25, 2021
1 parent 260757c commit bff0b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flow/lib/LifeCycleManager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ def done_wd_cb(client, service_id, role_name, node)
next unless role.nodes.find {|n| n['deploy_id'] == node }

# just update if the cardinality is positive
set_cardinality(role, cardinality, false) if cardinality >= 0
set_cardinality(role, cardinality, true) if cardinality >= 0

role.nodes.delete_if {|n| n['deploy_id'] == node }

Expand Down

0 comments on commit bff0b78

Please sign in to comment.