From ca35f565e080e5d41019f6dd7bd6c3b6b3770994 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 25 May 2015 07:36:00 -0700 Subject: [PATCH] Return success exit status when no ipsets are saved by the script Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 56c70f456..fb7c4923f 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -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',