Puppet Function: openldap::flatten_time_limit
- Defined in:
- functions/flatten_time_limit.pp
- Function type:
- Puppet Language
Overview
Flatten time limits to string form.
12 13 14 15 16 17 18 19 |
# File 'functions/flatten_time_limit.pp', line 12
function openldap::flatten_time_limit(Optional[OpenLDAP::Limit::Time] $value) {
type($value) ? {
Type[Hash] => join(join_keys_to_values(prefix($value, 'time.'), '='), ' '),
Type[Scalar] => String($value),
default => undef,
}
}
|