diff --git a/lib/cap-ec2/utils.rb b/lib/cap-ec2/utils.rb index 97dbc41..2c7a38d 100644 --- a/lib/cap-ec2/utils.rb +++ b/lib/cap-ec2/utils.rb @@ -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