Skip to content

Commit

Permalink
use YAML.load to support Ruby version 3.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumar9 committed Nov 13, 2023
1 parent 3a37259 commit 22b6070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resource_registry/serializers/yaml/deserialize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}. " \
Expand Down

0 comments on commit 22b6070

Please sign in to comment.