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

fix check empty

parent ec2f865d
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 =~ Undef {
fail('public is declared but it\'s empty. Please either delete it or add proper values')
if $facts_fw_conf_public =~ Undef {
fail('fw_builder 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