Puppet Function: image_supports_trm
- Defined in:
- lib/puppet/parser/functions/image_supports_trm.rb
- Function type:
- Ruby 3.x API
Overview
27 28 29 30 31 32 33 34 |
# File 'lib/puppet/parser/functions/image_supports_trm.rb', line 27 newfunction(:image_supports_trm, type: :rvalue) do |_args| data = lookupvar('os') return '' if data.nil? pat = /I[2-6]/ image = data['release']['full'] image[pat].nil? ? true : false end |