diff options
| author | dheerajd-msys <dheeraj.dubey@msystechnologies.com> | 2019-01-14 15:15:04 +0530 |
|---|---|---|
| committer | Bryan McLellan <btm@loftninjas.org> | 2019-02-21 15:43:47 -0500 |
| commit | 5e59bf07f537ceefe18145494a1d513cad48ef9f (patch) | |
| tree | 1c0d221a62012b9d23db6f975ca16ea60b9d7677 /lib/chef/resource/openssl_dhparam.rb | |
| parent | 4e3d57205ff9f3c494287397e98616cd96fdd610 (diff) | |
| download | chef-5e59bf07f537ceefe18145494a1d513cad48ef9f.tar.gz | |
fix for resource properties update
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
Diffstat (limited to 'lib/chef/resource/openssl_dhparam.rb')
| -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 445dd97bdc..a66f2800d9 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 |
