Puppet Function: validate_unbound_addr
- Defined in:
- lib/puppet/parser/functions/validate_unbound_addr.rb
- Function type:
- Ruby 3.x API
Overview
4 5 6 7 8 9 10 11 12 |
# File 'lib/puppet/parser/functions/validate_unbound_addr.rb', line 4 Puppet::Parser::Functions.newfunction(:validate_unbound_addr) do |args| if (args.size != 1) then raise(Puppet::ParseError, "validate_unbound_addr(): Wrong number of arguments "+ "given #{arguments.size} for 1") end addresses = args.shift PuppetX::Unbound::ValidateAddrs.new(addresses) end |