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

fix warning message

parent 2f3a04a6
No related branches found
No related tags found
No related merge requests found
......@@ -129,15 +129,20 @@ function fw_builder::fw_builder() {
content => to_yaml({fw_ipsets => $ipsets});
}
# emit warning if the key is deinfed and it's empty
#
['public', 'trust'].each() |$zone| {
if $zone in $fw_conf and empty($fw_conf[$zone]) {
echo { 'WARNING fw_builder':
message => "'${zone}' zone key is defined but it\'s empty";
}
}
}
# this section will setup / create all the fwb rules
#
['public', 'trust'].each() |$zone| {
if $fw_conf[$zone] {
if $fw_conf[$zone].length() == 0 {
echo { 'WARNING fw_builder':
message => "fw_builder ${zone} key exists but it\'s empty";
}
}
$fw_conf[$zone].each |$name , $conf| {
$ports_spaces = $conf['port'] ? {
Array => join($conf['port'], ' '),
......
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