diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource/inspec_waiver_file_entry.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/inspec_waiver_file_entry.rb b/lib/chef/resource/inspec_waiver_file_entry.rb index 69849fa044..0fa5617a4b 100644 --- a/lib/chef/resource/inspec_waiver_file_entry.rb +++ b/lib/chef/resource/inspec_waiver_file_entry.rb @@ -136,7 +136,7 @@ class Chef def load_waiver_file_to_hash(file_name) if %r{(/|C:\\).*(.yaml|.yml)}i.match?(file_name) if ::File.exist?(file_name) - hash = ::YAML.safe.load_file(file_name, permitted_classes: [Date]) + hash = ::YAML.safe_load_file(file_name, permitted_classes: [Date]) if hash == false || hash.nil? || hash == "" {} else |