summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-12-11 08:37:20 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-12-14 12:51:58 -0800
commitcf522b0da066e34a843646301dfecb8f5360329e (patch)
treec60c7a49fe5cc16d2daf6ffdf85f49f877be9584
parent3303794107f18d1707add305bec6245aabf4ad17 (diff)
downloadchef-cf522b0da066e34a843646301dfecb8f5360329e.tar.gz
is: vs. regex: is different
-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 827951b83a..1f50e65b4b 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 ], is: /^[a-zA-Z0-9]{64}$/
+ property :checksum, [ String, nil ], regex: /^[a-zA-Z0-9]{64}$/
property :path, String, name_property: true
property :diff, [ String, nil ], desired_state: false
property :atomic_update, [ true, false ], desired_state: false, default: Chef::Config[:file_atomic_update]