diff --git a/lib/octocatalog-diff/facts/yaml.rb b/lib/octocatalog-diff/facts/yaml.rb index 35c03342..9879221b 100644 --- a/lib/octocatalog-diff/facts/yaml.rb +++ b/lib/octocatalog-diff/facts/yaml.rb @@ -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