Skip to content

Commit

Permalink
Merge pull request forward3d#77 from ur5us/bugfix/find-expects-callable
Browse files Browse the repository at this point in the history
Fix NoMethodError undefined method call for Hash
  • Loading branch information
dlahn authored Feb 5, 2018
2 parents 13db948 + 95f9f7b commit 1eff9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cap-ec2/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def tag_delimiter
end

def tag_value(instance, key)
instance.tags.find({}) { |t| t[:key] == key.to_s }[:value]
instance.tags.find(-> { {} }) { |t| t[:key] == key.to_s }[:value]
end

def self.contact_point_mapping
Expand Down

0 comments on commit 1eff9fc

Please sign in to comment.