Skip to content
Snippets Groups Projects
Unverified Commit b217ceca authored by Max Adamo's avatar Max Adamo
Browse files

replace hash with array of hashes

parent 8e6ec2a1
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ function fw_builder::fw_builder() { ...@@ -61,7 +61,7 @@ function fw_builder::fw_builder() {
# #
if ($fw_conf['custom_ipset'][$name]['puppetdb']) { if ($fw_conf['custom_ipset'][$name]['puppetdb']) {
$pdb_hash = $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 # check if "env" was defined and it contains proper values
$pdb_filter = join( $pdb_filter = join(
$pdb_hash.map |$hash| { $pdb_hash.map |$hash| {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment