Unverified Commit 1e9eddbf authored by Kenyon Ralph's avatar Kenyon Ralph Committed by GitHub
Browse files

Merge pull request #442 from kenyon/fix-variant-undef

Remove redundant undef variant in Optional data type
parents 1065ce87 c5bd206c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -792,7 +792,7 @@ Default value: `'present'`

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

Data type: `Optional[Variant[Array[String], String, Undef]]`
Data type: `Optional[Variant[Array[String], String]]`

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

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

Data type: `Optional[Variant[Array[String], String, Undef]]`
Data type: `Optional[Variant[Array[String], String]]`

A string whose value is a location for the source file to be used. This parameter is mutually
exclusive with the content parameter, one or the other must be present, but both cannot be present.
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@
#
define postfix::conffile (
  Enum['present', 'absent', 'directory'] $ensure = 'present',
  Optional[Variant[Array[String], String, Undef]] $source = undef,
  Optional[Variant[Array[String], String]] $source = undef,
  Optional[String] $content = undef,
  Optional[Stdlib::Absolutepath] $path = undef,
  Stdlib::Filemode $mode = '0640',
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@
#
define postfix::hash (
  Enum['present', 'absent'] $ensure = 'present',
  Optional[Variant[Array[String], String, Undef]] $source  = undef,
  Optional[Variant[Array[String], String]] $source = undef,
  Optional[Variant[Sensitive[String],String]] $content = undef,
  Stdlib::Filemode $mode = '0640',
) {