From: Jason Ish Date: Tue, 18 May 2021 05:15:26 +0000 (-0600) Subject: conf: allow no-test in configuration file X-Git-Tag: 1.3.0rc1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e472b5378e31033a2ca050765327ae2e466863f;p=thirdparty%2Fsuricata-update.git conf: allow no-test in configuration file If no-test was set in the configuration file, it was always being overridden by the command, even if not set on the command line. This change allow no-test to be set in the configuration file like: no-test: true Redmine issue: https://redmine.openinfosecfoundation.org/versions/168 --- diff --git a/suricata/update/parsers.py b/suricata/update/parsers.py index 6d86e45..9f2c9f2 100644 --- a/suricata/update/parsers.py +++ b/suricata/update/parsers.py @@ -133,7 +133,7 @@ update_arg = [ {'metavar': '', 'help': "Command to test Suricata configuration"}), (("--no-test",), - {'action': 'store_true', 'default': False, + {'action': 'store_true', 'default': None, 'help': "Disable testing rules with Suricata"}), (("--no-merge",), {'action': 'store_true', 'default': False,