From 95f9f7bdcb76eea1483212a962ba4a91072a02d8 Mon Sep 17 00:00:00 2001 From: Juri Hahn Date: Wed, 20 Dec 2017 14:33:51 +1300 Subject: [PATCH] Fix NoMethodError undefined method call for Hash Enumerable#find expects a callable object for its `ifnone` parameter. --- lib/cap-ec2/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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