From b217cecaa013979931ca1137c8ca7bb096f25544 Mon Sep 17 00:00:00 2001 From: Massimiliano Adamo <maxadamo@gmail.com> Date: Sun, 26 Feb 2023 16:18:15 +0100 Subject: [PATCH] replace hash with array of hashes --- functions/fw_builder.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/fw_builder.pp b/functions/fw_builder.pp index fd74148..f788127 100644 --- a/functions/fw_builder.pp +++ b/functions/fw_builder.pp @@ -61,7 +61,7 @@ function fw_builder::fw_builder() { # if ($fw_conf['custom_ipset'][$name]['puppetdb']) { $pdb_hash = $fw_conf['custom_ipset'][$name]['puppetdb'] - if $pdb_hash !~ Hash { fail("${pdb_hash} must be a hash") } + if $pdb_hash !~ Array[Hash] { fail("${pdb_hash} must be a hash") } # check if "env" was defined and it contains proper values $pdb_filter = join( $pdb_hash.map |$hash| { -- GitLab