From 2a4d6e959e5b2d2a9ce05c6a61a6b71cd0408089 Mon Sep 17 00:00:00 2001 From: Lennart Betz Date: Fri, 17 May 2024 11:43:21 +0200 Subject: [PATCH] Remove obsolet unit test for function unwrap --- REFERENCE.md | 19 ------------------- functions/unwrap.pp | 16 ---------------- 2 files changed, 35 deletions(-) delete mode 100644 functions/unwrap.pp diff --git a/REFERENCE.md b/REFERENCE.md index 15ec25de..f3c7d4ea 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -81,7 +81,6 @@ that store groups. ### Functions * [`icingaweb2::pick`](#icingaweb2--pick): This function returns first parameter if set. -* [`icingaweb2::unwrap`](#icingaweb2--unwrap): This function returns an unwrap string if necessary. ### Data types @@ -4407,24 +4406,6 @@ Data type: `Any` -### `icingaweb2::unwrap` - -Type: Puppet Language - -This function returns an unwrap string if necessary. - -#### `icingaweb2::unwrap(Optional[Variant[String, Sensitive[String]]] $arg = undef)` - -The icingaweb2::unwrap function. - -Returns: `Any` The unwraped string. - -##### `arg` - -Data type: `Optional[Variant[String, Sensitive[String]]]` - - - ## Data types ### `Icingaweb2::AdminRole` diff --git a/functions/unwrap.pp b/functions/unwrap.pp deleted file mode 100644 index 19ce7b64..00000000 --- a/functions/unwrap.pp +++ /dev/null @@ -1,16 +0,0 @@ -# @summary -# This function returns an unwrap string if necessary. -# -# @return -# The unwraped string. -# -function icingaweb2::unwrap(Optional[Variant[String, Sensitive[String]]] $arg = undef) { - # @param arg - # A sensitive or string. - # - if $arg =~ Sensitive { - $arg.unwrap - } else { - $arg - } -}