Skip to content

Commit

Permalink
Use Caddy::Config for the type name
Browse files Browse the repository at this point in the history
A class name doesn't conflict with the type name, while a defined
resource name does.
  • Loading branch information
jay7x committed Dec 20, 2024
1 parent 5a5c0a1 commit 054e0c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
Boolean $purge_config_dir = true,
Boolean $purge_vhost_dir = $purge_config_dir,
Boolean $purge_vhost_enable_dir = $purge_vhost_dir,
Hash[String[1], Caddy::Configfile] $config_files = {},
Hash[String[1], Caddy::Config] $config_files = {},
Hash[String[1], Caddy::VirtualHost] $vhosts = {},
) {
case $caddy_architecture {
Expand Down Expand Up @@ -228,7 +228,7 @@
contain caddy::config
contain caddy::service

$config_files.each |String[1] $name, Caddy::Configfile $cfg| {
$config_files.each |String[1] $name, Caddy::Config $cfg| {
caddy::configfile { $name:
* => $cfg,
}
Expand Down

0 comments on commit 054e0c3

Please sign in to comment.