Change the way in which a warning message is suppressed

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2015-05-26 15:54:41 -07:00
parent 602315938c
commit 93c7e2c2f7
2 changed files with 2 additions and 3 deletions

View File

@ -474,7 +474,7 @@ do_save() {
fi fi
fi fi
;; ;;
[Nn]o) [Nn]o|ipv4|ipv6)
;; ;;
*) *)
error_message "WARNING: Invalid value ($SAVE_IPSETS) for SAVE_IPSETS" error_message "WARNING: Invalid value ($SAVE_IPSETS) for SAVE_IPSETS"

View File

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