summaryrefslogtreecommitdiff
path: root/lib/chef/resource/cookbook_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/cookbook_file.rb')
-rw-r--r--lib/chef/resource/cookbook_file.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/resource/cookbook_file.rb b/lib/chef/resource/cookbook_file.rb
index 0caa9d0553..c96e794469 100644
--- a/lib/chef/resource/cookbook_file.rb
+++ b/lib/chef/resource/cookbook_file.rb
@@ -36,7 +36,8 @@ class Chef
default: lazy { ::File.basename(name) }
property :cookbook, String,
- description: "The cookbook in which a file is located (if it is not located in the current cookbook)."
+ description: "The cookbook in which a file is located (if it is not located in the current cookbook).",
+ desired_state: false
default_action :create
end