mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 12:09:14 +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
|
||||||
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"
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user