summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/property.rb2
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