Puppet Function: default_content
- Defined in:
- lib/puppet/parser/functions/default_content.rb
- Function type:
- Ruby 3.x API
Overview
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/puppet/parser/functions/default_content.rb', line 2 newfunction(:default_content, :type => :rvalue) do |args| Puppet::Parser::Functions.function('template') content_string = args[0] content_template = args[1] return content_string if content_string != '' return function_template([content_template]) if content_template != '' return :undef end |