Skip to content

Commit

Permalink
fix Psych::DisallowedClass on Ruby >= 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mxey committed Jul 15, 2024
1 parent c6d2c25 commit a9374d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octocatalog-diff/facts/yaml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def self.fact_retriever(options = {}, node = '')
fact_file_data[0] = '---' if fact_file_data[0] =~ /^---/

# Load the parsed fact file.
parsed = YAML.load(fact_file_data.join("\n"))
parsed = YAML.load(fact_file_data.join("\n"), permitted_classes: [Time])

# This is a handler for a YAML file that has just the facts and none of the
# structure. For example if you saved the output of `facter -y` to a file and
Expand Down

0 comments on commit a9374d6

Please sign in to comment.