From 62d4cdddd9eadf2fc1fd38696f3c52a9e8d82ac8 Mon Sep 17 00:00:00 2001 From: Thomas Powell <104777878+tpowell-progress@users.noreply.github.com> Date: Tue, 9 May 2023 15:09:00 -0400 Subject: File exists? -> exist? (#13744) Signed-off-by: Thomas Powell --- lib/chef/resource/windows_certificate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/chef/resource/windows_certificate.rb b/lib/chef/resource/windows_certificate.rb index 79abfa4c19..609e59416a 100644 --- a/lib/chef/resource/windows_certificate.rb +++ b/lib/chef/resource/windows_certificate.rb @@ -440,7 +440,7 @@ class Chef def export_cert(cert_obj, output_path:, store_name:, store_location:, pfx_password:) # Delete the cert if it exists on disk already. # We want to ensure we're not randomly loading an old stinky cert. - if ::File.exists?(output_path) + if ::File.exist?(output_path) ::File.delete(output_path) end -- cgit v1.2.1