diff options
author | John Keiser <john@johnkeiser.com> | 2016-02-01 13:11:31 -0800 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2016-02-01 13:11:31 -0800 |
commit | b026a472a36576adff838873f19e2d5d10a60853 (patch) | |
tree | d860fe80a05a4820d941be05a23afde562c1e27b | |
parent | 862a85015b841b15541eeb372a642ab50ca210a9 (diff) | |
download | chef-b026a472a36576adff838873f19e2d5d10a60853.tar.gz |
Simplify fix for property_type with defaultsjk/property-type-default-check
`property_type(is: [:a, :b], default: :c)` was broken because ParamsValidate requires its input to have a name and property types don't have one.
-rw-r--r-- | lib/chef/property.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/property.rb b/lib/chef/property.rb index 68d9b80103..e32d15a9f5 100644 --- a/lib/chef/property.rb +++ b/lib/chef/property.rb @@ -467,7 +467,7 @@ class Chef resource.validate({ name => value }, { name => validation_options }) else name = self.name || :property_type - (resource || Chef::Mixin::ParamsValidate).validate({ name => value }, { name => validation_options }) + Chef::Mixin::ParamsValidate.validate({ name => value }, { name => validation_options }) end end end |