Puppet Function: complyadm::default_for_value
- Defined in:
- functions/default_for_value.pp
- Function type:
- Puppet Language
Overview
A shorthand for providing a default value if the given one is undef
2 3 4 5 6 7 |
# File 'functions/default_for_value.pp', line 2
function complyadm::default_for_value(Any $value, NotUndef $default) {
$resolved = $value ? {
undef => $default,
default => $value
}
}
|