Puppet Function: ora_config::on_sid
- Defined in:
- lib/puppet/functions/ora_config/on_sid.rb
- Function type:
- Ruby 4.x API
Overview
See the file “LICENSE” for the full license governing this code.
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/puppet/functions/ora_config/on_sid.rb', line 6 Puppet::Functions.create_function('ora_config::on_sid') do dispatch :on_sid do param 'Variant[Array, Undef]', :values param 'String', :select_sid end def on_sid(values, select_sid) return [] if values.nil? values.collect { |e| e['sid'] == select_sid ? e['name'] : nil }.compact end end |