lib/chef-api/validators/required.rb in chef-api-0.10.0 vs lib/chef-api/validators/required.rb in chef-api-0.10.2
- old
+ new
@@ -2,10 +2,10 @@
class Validator::Required < Validator::Base
def validate(resource)
value = resource._attributes[attribute]
if value.to_s.strip.empty?
- resource.errors.add(attribute, 'must be present')
+ resource.errors.add(attribute, "must be present")
end
end
end
end