]> git.ipfire.org Git - thirdparty/suricata-update.git/commitdiff
conf: allow no-test in configuration file
authorJason Ish <jason.ish@oisf.net>
Tue, 18 May 2021 05:15:26 +0000 (23:15 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 18 May 2021 05:48:12 +0000 (23:48 -0600)
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

suricata/update/parsers.py

index 6d86e455c5047a9af30d98e911ab3c9048a76d31..9f2c9f2acbad8873aee6daae5428de8543397d29 100644 (file)
@@ -133,7 +133,7 @@ update_arg = [
      {'metavar': '<command>',
       '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,