summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2022-03-21 23:36:16 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2022-03-21 23:36:16 -0700
commit948e10cd9e1045a25e420551005397d67935202c (patch)
tree2a82e43c2e006367acf611bf92db42a2ded6b466 /lib
parent119c4089b92e8544a3048161bca390e2d7027680 (diff)
downloadchef-948e10cd9e1045a25e420551005397d67935202c.tar.gz
typo
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/resource/inspec_waiver_file_entry.rb2
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