Skip to content

Commit 01cb053

Browse files
committed
vhost::directories: switch default from undef to empty array
1 parent b6cb8e9 commit 01cb053

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

REFERENCE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9985,7 +9985,7 @@ Default value: `undef`
99859985

99869986
##### <a name="-apache--vhost--directories"></a>`directories`
99879987

9988-
Data type: `Optional[Array[Hash]]`
9988+
Data type: `Array[Hash]`
99899989

99909990
The `directories` parameter within the `apache::vhost` class passes an array of hashes
99919991
to the virtual host to create [Directory](https://httpd.apache.org/docs/current/mod/core.html#directory),
@@ -10111,7 +10111,7 @@ and others.
1011110111
}
1011210112
```
1011310113
10114-
Default value: `undef`
10114+
Default value: `[]`
1011510115
1011610116
##### <a name="-apache--vhost--custom_fragment"></a>`custom_fragment`
1011710117

manifests/vhost.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,7 @@
17781778
Boolean $use_servername_for_filenames = false,
17791779
Boolean $use_port_for_filenames = false,
17801780
Array[Hash[String[1], String[1]]] $aliases = [],
1781-
Optional[Array[Hash]] $directories = undef,
1781+
Array[Hash] $directories = [],
17821782
Boolean $error_log = true,
17831783
Optional[String] $error_log_file = undef,
17841784
Optional[String] $error_log_pipe = undef,
@@ -2152,7 +2152,7 @@
21522152
}
21532153

21542154
## Create a default directory list if none defined
2155-
if $directories {
2155+
if !empty($directories) {
21562156
$_directories = $directories
21572157
} elsif $docroot {
21582158
$_directories = [

0 commit comments

Comments
 (0)