summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/file.rb b/lib/chef/resource/file.rb
index b41d1ba743..54f55a1e2b 100644
--- a/lib/chef/resource/file.rb
+++ b/lib/chef/resource/file.rb
@@ -52,7 +52,7 @@ class Chef
property :content, [ String, nil ], desired_state: false
property :backup, [ Integer, false ], desired_state: false, default: 5
- property :checksum, [ String, nil ], regex: /^[a-zA-Z0-9]{64}$/
+ property :checksum, [ /^[a-zA-Z0-9]{64}$/, nil ]
property :path, String, name_property: true, identity: true
property :diff, [ String, nil ], desired_state: false
property :atomic_update, [ true, false ], desired_state: false, default: Chef::Config[:file_atomic_update]