Skip to content

Commit 0df9eea

Browse files
committed
fix Psych::DisallowedClass on Ruby >= 3.1
1 parent 66f094f commit 0df9eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/octocatalog-diff/facts/yaml.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def self.fact_retriever(options = {}, node = '')
2222
fact_file_data[0] = '---' if fact_file_data[0] =~ /^---/
2323

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

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

0 commit comments

Comments
 (0)