summaryrefslogtreecommitdiff
path: root/lib/chef/resource/openssl_rsa_public_key.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-07-30 16:58:37 -0700
committerTim Smith <tsmith@chef.io>2018-08-14 11:23:59 -0700
commitb9a1f16e85fd5fee48f7e03799828046251b6dc5 (patch)
tree89e85d0d06aa5d230ff80d4d1893414811cfe383 /lib/chef/resource/openssl_rsa_public_key.rb
parent49fd808d7e290a72de1d45c258fde78acf8782d8 (diff)
downloadchef-b9a1f16e85fd5fee48f7e03799828046251b6dc5.tar.gz
Remove declare_resource usage
We don't need this with custom resources Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/openssl_rsa_public_key.rb')
-rw-r--r--lib/chef/resource/openssl_rsa_public_key.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/openssl_rsa_public_key.rb b/lib/chef/resource/openssl_rsa_public_key.rb
index fa00404999..978bc1b678 100644
--- a/lib/chef/resource/openssl_rsa_public_key.rb
+++ b/lib/chef/resource/openssl_rsa_public_key.rb
@@ -61,7 +61,7 @@ class Chef
rsa_key_content = gen_rsa_pub_key((new_resource.private_key_path || new_resource.private_key_content), new_resource.private_key_pass)
- declare_resource(:file, new_resource.path) do
+ 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?