lib/aws/cfn/compiler/mixins/compile.rb in aws-cfn-compiler-0.9.13 vs lib/aws/cfn/compiler/mixins/compile.rb in aws-cfn-compiler-0.9.14

- old
+ new

@@ -244,17 +244,16 @@ hash.collect{|e| a << find_fns(e) } end r = a.flatten.compact.uniq - r end def find_maps(hash,source=[]) if hash.is_a? Hash hash.keys.collect do |key| if 'Fn::FindInMap' == key - { mapping: hash[key].first, source: source } + { :mapping => hash[key].first, :source => source } else find_maps(hash[key], [ source, key ].flatten!) end end.flatten.compact.uniq elsif hash.is_a? Array