Puppet Function: platform_fretta
- Defined in:
- lib/puppet/parser/functions/platform_fretta.rb
- Function type:
- Ruby 3.x API
Overview
27 28 29 30 31 32 33 34 35 |
# File 'lib/puppet/parser/functions/platform_fretta.rb', line 27 newfunction(:platform_fretta, type: :rvalue) do |_args| data = lookupvar('cisco') return '' if data.nil? data['inventory'].each do |_x, slot| return true if slot['pid'][/-R/] end false end |