Skip to content

Commit

Permalink
Fixed compare if eb env contains region
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshy committed May 9, 2016
1 parent 56b86fc commit 80b0cf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/eb_deployer/deployment_strategy/blue_green.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def deploy(version_label, env_settings, inactive_settings=[])

private
def active_ebenv?(ebenv)
ebenv.cname_prefix == @component.cname_prefix
str = ebenv.cname_prefix.nil? ? nil : ebenv.cname_prefix.gsub(/\..*/,'')
str == @component.cname_prefix
end

def ebenvs
Expand Down

0 comments on commit 80b0cf0

Please sign in to comment.