summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/rhsm_register.rb1
-rw-r--r--lib/chef/resource/windows_certificate.rb1
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/chef/resource/rhsm_register.rb b/lib/chef/resource/rhsm_register.rb
index afe30e4a3a..aa3f47780e 100644
--- a/lib/chef/resource/rhsm_register.rb
+++ b/lib/chef/resource/rhsm_register.rb
@@ -80,7 +80,6 @@ class Chef
not_if { katello_cert_rpm_installed? }
end
-
file "#{Chef::Config[:file_cache_path]}/katello-package.rpm" do
action :delete
end
diff --git a/lib/chef/resource/windows_certificate.rb b/lib/chef/resource/windows_certificate.rb
index 474f9ad69c..7a561f7fc4 100644
--- a/lib/chef/resource/windows_certificate.rb
+++ b/lib/chef/resource/windows_certificate.rb
@@ -309,7 +309,6 @@ class Chef
def import_certificates(cert_objs, is_pfx)
[cert_objs].flatten.each do |cert_obj|
thumbprint = OpenSSL::Digest::SHA1.new(cert_obj.to_der).to_s # Fetch its thumbprint
-
# Need to check if return value is Boolean:true
# If not then the given certificate should be added in certstore
if verify_cert(thumbprint) == true