diff options
author | Reid Vandewiele <reid@puppetlabs.com> | 2017-04-07 15:13:59 -0700 |
---|---|---|
committer | Reid Vandewiele <reid@puppetlabs.com> | 2017-06-30 14:02:48 -0700 |
commit | 740ca7dc8053be93e43392ca61b2f308c0596d19 (patch) | |
tree | 63d98d34831c1d722fe3198c3f1219cf85931c97 /lib/puppet/parser/functions/ceiling.rb | |
parent | b98f0b3fc113b97cef618e0e6cb09bfdb666e467 (diff) |
(FACT-932) Add new function, fact()
The fact() function allows dot-notation reference to facts. It is an
alternative to using $facts directly with array-indexing. Array-indexing
is often onerous to use since it doesn't align with how structured facts
are accessed elsewhere in the ecosystem and if any element in a
multi-step path doesn't exist, array indexing can cause a compilation
failure.
Example usage:
fact('os.family')
Diffstat (limited to 'lib/puppet/parser/functions/ceiling.rb')
0 files changed, 0 insertions, 0 deletions