mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 06:10:42 +01:00
Change the way in which a warning message is suppressed
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
602315938c
commit
93c7e2c2f7
@ -474,7 +474,7 @@ do_save() {
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
[Nn]o)
|
||||
[Nn]o|ipv4|ipv6)
|
||||
;;
|
||||
*)
|
||||
error_message "WARNING: Invalid value ($SAVE_IPSETS) for SAVE_IPSETS"
|
||||
|
@ -8148,8 +8148,7 @@ sub create_save_ipsets() {
|
||||
}
|
||||
} elsif ( $config{SAVE_IPSETS} ) {
|
||||
emit( ' error_message "WARNING: No ipsets were saved"',
|
||||
" #\n # Indicate success so that the CLI doesn't attempt to save the sets\n #",
|
||||
' return 0',
|
||||
' return 1',
|
||||
"}\n" );
|
||||
} else {
|
||||
emit( ' true',
|
||||
|
Loading…
Reference in New Issue
Block a user