Puppet Function: icingaweb2::unwrap
- Defined in:
- functions/unwrap.pp
- Function type:
- Puppet Language
Summary
This function returns an unwrap string if necessary.Overview
| 7 8 9 10 11 12 13 14 15 16 | # File 'functions/unwrap.pp', line 7
function icingaweb2::unwrap(Optional[Variant[String, Sensitive[String]]] $arg = undef) {
  # @param arg
  #   A sensitive or string.
  #
  if $arg =~ Sensitive {
    $arg.unwrap
  } else {
    $arg
  }
} |