Puppet Function: openldap::flatten_checkpoint

Defined in:
functions/flatten_checkpoint.pp
Function type:
Puppet Language

Overview

openldap::flatten_checkpoint(Optional[OpenLDAP::Checkpoint] $value)Optional[String]

Flatten a checkpoint specification to a string.

Examples:

openldap::flatten_checkpoint([10, 100])

Parameters:

  • value (Optional[OpenLDAP::Checkpoint])

    The value to flatten, undef is passed through.

Returns:

  • (Optional[String])

    The flattened checkpoint as a string.

Since:

  • 2.0.0



11
12
13
14
15
16
17
# File 'functions/flatten_checkpoint.pp', line 11

function openldap::flatten_checkpoint(Optional[OpenLDAP::Checkpoint] $value) {

  $value ? {
    undef   => undef,
    default => join($value, ' '),
  }
}