summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Powell <104777878+tpowell-progress@users.noreply.github.com>2023-05-09 15:09:00 -0400
committerGitHub <noreply@github.com>2023-05-09 15:09:00 -0400
commit62d4cdddd9eadf2fc1fd38696f3c52a9e8d82ac8 (patch)
tree2ba57e7fed8feb8c159eb72621430800e1e9d456
parent420a2acf44e59e82e78eef9688530c1d8a747c73 (diff)
downloadchef-62d4cdddd9eadf2fc1fd38696f3c52a9e8d82ac8.tar.gz
File exists? -> exist? (#13744)
Signed-off-by: Thomas Powell <thomas.powell@progress.com>
-rw-r--r--lib/chef/resource/windows_certificate.rb2
1 files changed, 1 insertions, 1 deletions
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