diff --git a/lib/cap-ec2/utils.rb b/lib/cap-ec2/utils.rb index be2b154..f4df6b0 100644 --- a/lib/cap-ec2/utils.rb +++ b/lib/cap-ec2/utils.rb @@ -23,7 +23,7 @@ def stages_tag 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