Skip to content

Commit 1e9eddb

Browse files
authored
Merge pull request #442 from kenyon/fix-variant-undef
Remove redundant undef variant in Optional data type
2 parents 1065ce8 + c5bd206 commit 1e9eddb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

REFERENCE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ Default value: `'present'`
792792

793793
##### <a name="-postfix--conffile--source"></a>`source`
794794

795-
Data type: `Optional[Variant[Array[String], String, Undef]]`
795+
Data type: `Optional[Variant[Array[String], String]]`
796796

797797
A string with the source of the file. This is the `source` parameter of the underlying file resource.
798798
Example: `puppet:///modules/postfix/configfile.cf`
@@ -975,7 +975,7 @@ Default value: `'present'`
975975

976976
##### <a name="-postfix--hash--source"></a>`source`
977977

978-
Data type: `Optional[Variant[Array[String], String, Undef]]`
978+
Data type: `Optional[Variant[Array[String], String]]`
979979

980980
A string whose value is a location for the source file to be used. This parameter is mutually
981981
exclusive with the content parameter, one or the other must be present, but both cannot be present.

manifests/conffile.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#
5151
define postfix::conffile (
5252
Enum['present', 'absent', 'directory'] $ensure = 'present',
53-
Optional[Variant[Array[String], String, Undef]] $source = undef,
53+
Optional[Variant[Array[String], String]] $source = undef,
5454
Optional[String] $content = undef,
5555
Optional[Stdlib::Absolutepath] $path = undef,
5656
Stdlib::Filemode $mode = '0640',

manifests/hash.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#
4545
define postfix::hash (
4646
Enum['present', 'absent'] $ensure = 'present',
47-
Optional[Variant[Array[String], String, Undef]] $source = undef,
47+
Optional[Variant[Array[String], String]] $source = undef,
4848
Optional[Variant[Sensitive[String],String]] $content = undef,
4949
Stdlib::Filemode $mode = '0640',
5050
) {

0 commit comments

Comments
 (0)