lib/aws/cfn/compiler/mixins/parse.rb in aws-cfn-compiler-0.9.22 vs lib/aws/cfn/compiler/mixins/parse.rb in aws-cfn-compiler-0.9.23
- old
+ new
@@ -118,10 +118,10 @@
item = parse_rb_file(base, section, filename)
elsif filename =~ /\.js(|on)\z/i
item[section].merge! JSON.parse(content)
elsif filename =~ /\.ya?ml\z/i
begin
- item[section].merge! YAML.load(content)
+ item[section].merge! YAML.load(content) # item[section].merge! YAML.safe_load(content) #
rescue => e
logger.fatal "YAML error: #{e.message}"
raise e
end
else