Skip to content

Commit

Permalink
Merge pull request engineyard#252 from engineyard/redis-match-patch
Browse files Browse the repository at this point in the history
Minor bugfix on redis recipe
  • Loading branch information
dvalfre authored Sep 12, 2016
2 parents 7abe706 + e78e847 commit 0c1d308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbooks/redis/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@

if ['solo', 'app', 'app_master', 'util'].include?(node[:instance_role])
instances = node[:engineyard][:environment][:instances]
redis_instance = (node[:instance_role][/solo/] && instances.length == 1) ? instances[0] : instances.find{|i| i[:name].to_s[/redis/]}
redis_instance = (node[:instance_role][/solo/] && instances.length == 1) ? instances[0] : instances.find{|i| "redis" == i[:name]}

if redis_instance
ip_address = `ping -c 1 #{redis_instance[:private_hostname]} | awk 'NR==1{gsub(/\\(|\\)/,"",$3); print $3}'`.chomp
Expand Down

0 comments on commit 0c1d308

Please sign in to comment.