From 32e87376a3396c39a7886e48a2eb66c9763b6ccb Mon Sep 17 00:00:00 2001 From: Jonas Bechstein Date: Tue, 17 Nov 2020 16:54:37 +0100 Subject: [PATCH] apply inactive settings when termination fails --- lib/eb_deployer/deployment_strategy/blue_green.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/eb_deployer/deployment_strategy/blue_green.rb b/lib/eb_deployer/deployment_strategy/blue_green.rb index 4a72ed4..7cc8e8d 100644 --- a/lib/eb_deployer/deployment_strategy/blue_green.rb +++ b/lib/eb_deployer/deployment_strategy/blue_green.rb @@ -48,6 +48,8 @@ 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") + active_ebenv.log("applying inactive settings...") + active_ebenv.apply_settings(inactive_settings) end end