diff options
-rw-r--r-- | lib/chef/resource/windows_certificate.rb | 2 |
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 |