Return success exit status when no ipsets are saved by the script

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2015-05-25 07:36:00 -07:00
parent bbdbdf7c47
commit ca35f565e0

View File

@ -8148,7 +8148,8 @@ sub create_save_ipsets() {
}
} elsif ( $config{SAVE_IPSETS} ) {
emit( ' error_message "WARNING: No ipsets were saved"',
' return 1',
" #\n # Indicate success so that the CLI doesn't attempt to save the sets\n #",
' return 0',
"}\n" );
} else {
emit( ' true',