Puppet Function: tp::is_something

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

Overview

tp::is_something(Any $input)Any

Parameters:

  • input (Any)

Returns:

  • (Any)


1
2
3
4
5
6
7
8
9
10
11
12
# File 'functions/is_something.pp', line 1

function tp::is_something (
  Any $input,
) {
  $output = $input ? {
    false     => false,
    ''        => false,
    []        => false,
    {}        => false,
    undef     => false,
    default   => true,
  }
}