summaryrefslogtreecommitdiff
path: root/lib/chef/resource/openssl_rsa_private_key.rb
diff options
context:
space:
mode:
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)