Skip to content

Commit

Permalink
[#75] Fixing nil for discovery_tags.each
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuhaib M Siddique authored and karmi committed Mar 6, 2013
1 parent e8fec8a commit c9bc1e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions attributes/aws.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@
default.elasticsearch[:cloud][:ec2][:endpoint] = ( aws['cloud']['ec2']['endpoint'] rescue nil )

discovery_tags = ( aws['discovery']['ec2']['tag'] rescue [] )
discovery_tags.each do |tag_name, tag_value|
default.elasticsearch[:discovery][:ec2][:tag][tag_name] = tag_value
unless discovery_tags.nil?
discovery_tags.each do |tag_name, tag_value|
default.elasticsearch[:discovery][:ec2][:tag][tag_name] = tag_value
end
end

default.elasticsearch[:cloud][:node][:auto_attributes] = true

0 comments on commit c9bc1e2

Please sign in to comment.