Skip to content

Commit 3ae5a16

Browse files
authored
Merge pull request #66 from bwilcox/fix_file_or_content
Update function to accept either string or undef data type.
2 parents a2a3a1a + 4dd56f7 commit 3ae5a16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

functions/file_or_content.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function peadm::file_or_content(
2-
String $param_name,
3-
String $file,
4-
String $content,
2+
String $param_name,
3+
Variant[String, Undef] $file,
4+
Variant[String, Undef] $content,
55
) {
66

77
$value = [

0 commit comments

Comments
 (0)