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

fix empty hash check

parent 62fd71df
No related branches found
No related tags found
No related merge requests found
......@@ -38,8 +38,8 @@ function fw_builder::fw_builder_public_ips(
$facts_fw_conf_public = $facts_fw_conf['public']
# fail on empty hash
if $facts_fw_conf_public.length == 0 {
fail('public is declared but it is empty. Please either delete it or add proper values')
if $facts_fw_conf_public.length =~ Undef {
fail('public is declared but it\'s empty. Please either delete it or add proper values')
}
# create a list of lists with all the ipsets in public
......
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