summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-12-11 09:32:57 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-12-14 12:51:58 -0800
commit8424fb3df28fd00fd96698ea31dcd2b8ada78b0d (patch)
tree4c249e8e7b48d456546b75ac7a1e2d0d28fa5512
parent3e6e9460e229bb232a54915f1fa09996ce9d9350 (diff)
downloadchef-8424fb3df28fd00fd96698ea31dcd2b8ada78b0d.tar.gz
regex works fine inside the is array
-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]