diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/parser/functions/kwalify.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/parser/functions/kwalify.rb b/lib/puppet/parser/functions/kwalify.rb index 7238f84..49b9aeb 100644 --- a/lib/puppet/parser/functions/kwalify.rb +++ b/lib/puppet/parser/functions/kwalify.rb @@ -2,8 +2,6 @@ # kwalify.rb # -require 'kwalify' - module Puppet::Parser::Functions newfunction(:kwalify, :type => :statement, :doc => <<-EOS This function uses kwalify to validate Puppet data structures against Kwalify @@ -17,6 +15,8 @@ schemas. schema = args[0] document = args[1] + require 'kwalify' + validator = Kwalify::Validator.new(schema) errors = validator.validate(document) |