Puppet Function: getTungstenINIDefaultsSections
- Defined in:
-
lib/puppet/parser/functions/getTungstenINIDefaultsSections.rb
- Function type:
- Ruby 3.x API
Overview
getTungstenINIDefaultsSections() ⇒ Any
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/puppet/parser/functions/getTungstenINIDefaultsSections.rb', line 16
newfunction(:getTungstenINIDefaultsSections, :type => :rvalue) do |args|
clusterHash = args[0]
sections = []
if clusterHash == false
return sections
end
clusterHash.each{
|key, value|
if key =~ /^defaults/
sections << key
end
}
return sections.sort()
end
|