From edf16dd92b0ae66bf54f3ba4c6553ee5b840c47b Mon Sep 17 00:00:00 2001 From: dheerajd-msys Date: Mon, 14 Jan 2019 15:15:04 +0530 Subject: fix for resource properties update Signed-off-by: dheerajd-msys --- lib/chef/resource/openssl_dhparam.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/chef/resource/openssl_dhparam.rb b/lib/chef/resource/openssl_dhparam.rb index f2f3b679e4..f835b1bedc 100644 --- a/lib/chef/resource/openssl_dhparam.rb +++ b/lib/chef/resource/openssl_dhparam.rb @@ -58,9 +58,8 @@ class Chef action :create do description "Create the dhparam file." - unless dhparam_pem_valid?(new_resource.path) converge_by("Create a dhparam file #{new_resource.path}") do - dhparam_content = gen_dhparam(new_resource.key_length, new_resource.generator).to_pem + dhparam_content = gen_dhparam(new_resource.key_length, new_resource.generator).to_pem if !::File.exist?(new_resource.path) file new_resource.path do action :create @@ -71,7 +70,6 @@ class Chef content dhparam_content end end - end end end end -- cgit v1.2.1