diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-12-11 08:37:20 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-12-14 12:51:58 -0800 |
commit | cf522b0da066e34a843646301dfecb8f5360329e (patch) | |
tree | c60c7a49fe5cc16d2daf6ffdf85f49f877be9584 /lib/chef | |
parent | 3303794107f18d1707add305bec6245aabf4ad17 (diff) | |
download | chef-cf522b0da066e34a843646301dfecb8f5360329e.tar.gz |
is: vs. regex: is different
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/resource/file.rb | 2 |
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] |