summaryrefslogtreecommitdiff
path: root/lib/chef/resource/openssl_rsa_private_key.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-04-27 15:53:10 -0700
committerTim Smith <tsmith@chef.io>2018-04-27 15:53:10 -0700
commit8538c85867993a3e49e4deacbbdbec610424a655 (patch)
treef82464e2defacba7b9a8f9dc39bd2f801dce619a /lib/chef/resource/openssl_rsa_private_key.rb
parenta068d3cde6105a591da24d1a5ff35bde26c16214 (diff)
downloadchef-8538c85867993a3e49e4deacbbdbec610424a655.tar.gz
Set desired_state: false on several propertiesdesired_state
These are not state attributes, but we're treating them like state attributes. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/openssl_rsa_private_key.rb')
-rw-r--r--lib/chef/resource/openssl_rsa_private_key.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/openssl_rsa_private_key.rb b/lib/chef/resource/openssl_rsa_private_key.rb
index 968eeded4c..be4c85bcbb 100644
--- a/lib/chef/resource/openssl_rsa_private_key.rb
+++ b/lib/chef/resource/openssl_rsa_private_key.rb
@@ -65,7 +65,7 @@ class Chef
property :force, [TrueClass, FalseClass],
description: "Force creating the key even if the existing key exists.",
- default: false
+ default: false, desired_state: false
action :create do
return if new_resource.force || priv_key_file_valid?(new_resource.path, new_resource.key_pass)