From 4dd56f7b79cedde0744b06d555c34212356cbf91 Mon Sep 17 00:00:00 2001 From: Bill Wilcox Date: Mon, 2 Mar 2020 16:02:00 -0700 Subject: [PATCH] Update function to accept either string or undef data type. --- functions/file_or_content.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/file_or_content.pp b/functions/file_or_content.pp index 7871c99f..ed5be20a 100644 --- a/functions/file_or_content.pp +++ b/functions/file_or_content.pp @@ -1,7 +1,7 @@ function peadm::file_or_content( - String $param_name, - String $file, - String $content, + String $param_name, + Variant[String, Undef] $file, + Variant[String, Undef] $content, ) { $value = [