From 22b60702230a8bcd077b3bf9b1e82683f327ba34 Mon Sep 17 00:00:00 2001 From: Sai Kumar Kotagiri Date: Tue, 7 Nov 2023 15:24:47 -0500 Subject: [PATCH] use YAML.load to support Ruby version 3.2.x --- lib/resource_registry/serializers/yaml/deserialize.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resource_registry/serializers/yaml/deserialize.rb b/lib/resource_registry/serializers/yaml/deserialize.rb index 0d3ab55..7488172 100644 --- a/lib/resource_registry/serializers/yaml/deserialize.rb +++ b/lib/resource_registry/serializers/yaml/deserialize.rb @@ -21,7 +21,7 @@ def call(params) def transform(params) # result = JSON.parse(ERB.new(JSON::dump(YAML.load(params))).result) - result = YAML.safe_load(ERB.new(params).result, [Symbol]) + result = YAML.load(ERB.new(params).result) Success(result || {}) rescue Psych::SyntaxError => e raise "YAML syntax error occurred while parsing #{params}. " \