diff options
author | dheerajd-msys <dheeraj.dubey@msystechnologies.com> | 2019-01-14 17:50:46 +0530 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2019-02-21 15:43:47 -0500 |
commit | d3cd09c813feaf38ad705e75a43dbf22ef919368 (patch) | |
tree | ab73ba2cc8a6432b22804af96a1138a15ba39d21 /lib/chef | |
parent | 5e59bf07f537ceefe18145494a1d513cad48ef9f (diff) | |
download | chef-d3cd09c813feaf38ad705e75a43dbf22ef919368.tar.gz |
test case added
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/resource/openssl_dhparam.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/chef/resource/openssl_dhparam.rb b/lib/chef/resource/openssl_dhparam.rb index a66f2800d9..ef4fa3d861 100644 --- a/lib/chef/resource/openssl_dhparam.rb +++ b/lib/chef/resource/openssl_dhparam.rb @@ -58,18 +58,18 @@ class Chef action :create do description "Create the dhparam file." - converge_by("Create a dhparam file #{new_resource.path}") do - dhparam_content = gen_dhparam(new_resource.key_length, new_resource.generator).to_pem if !::File.exist?(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 if !::File.exist?(new_resource.path) - file new_resource.path do - action :create - owner new_resource.owner unless new_resource.owner.nil? - group new_resource.group unless new_resource.group.nil? - mode new_resource.mode - sensitive true - content dhparam_content - end + file new_resource.path do + action :create + owner new_resource.owner unless new_resource.owner.nil? + group new_resource.group unless new_resource.group.nil? + mode new_resource.mode + sensitive true + content dhparam_content end + end end end end |