Skip to content

Commit

Permalink
apply inactive settings when termination fails
Browse files Browse the repository at this point in the history
  • Loading branch information
becjon committed Nov 17, 2020
1 parent f8d995c commit 0534321
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/eb_deployer/deployment_strategy/blue_green.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def deploy(version_label, env_settings, inactive_settings=[])
active_ebenv.terminate
else
active_ebenv.log("Active environment changed state to unhealthy. Existing (black) environment will not be terminated")
unless inactive_settings.empty?
active_ebenv.log("applying inactive settings...")
active_ebenv.apply_settings(inactive_settings)
end
end

end
Expand Down

0 comments on commit 0534321

Please sign in to comment.