summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authordheerajd-msys <dheeraj.dubey@msystechnologies.com>2019-01-14 17:50:46 +0530
committerBryan McLellan <btm@loftninjas.org>2019-02-21 15:43:47 -0500
commitd3cd09c813feaf38ad705e75a43dbf22ef919368 (patch)
treeab73ba2cc8a6432b22804af96a1138a15ba39d21 /lib/chef
parent5e59bf07f537ceefe18145494a1d513cad48ef9f (diff)
downloadchef-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.rb20
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