Suppress 'No ipsets were saved' warning when SAVE_IPSETS=No

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2014-10-07 07:50:12 -07:00
parent ea1b8ac63a
commit 5204cbc95f

View File

@ -8075,9 +8075,12 @@ sub create_save_ipsets() {
'' ,
"}\n" );
}
} else {
} elsif ( $config{SAVE_IPSETS} ) {
emit( ' error_message "WARNING: No ipsets were saved"',
"}\n" );
} else {
emit( ' true',
"}\n" );
}
}