diff options
author | dheerajd-msys <dheeraj.dubey@msystechnologies.com> | 2019-01-14 15:15:04 +0530 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2019-03-04 09:46:40 -0800 |
commit | edf16dd92b0ae66bf54f3ba4c6553ee5b840c47b (patch) | |
tree | 05a59d4bf6a7ad1e890bbbdd162e2b6b51620833 /lib/chef | |
parent | 98777cd43824fe4d412edde672f330f30ed40ac3 (diff) | |
download | chef-edf16dd92b0ae66bf54f3ba4c6553ee5b840c47b.tar.gz |
fix for resource properties update
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/resource/openssl_dhparam.rb | 4 |
1 files changed, 1 insertions, 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 |