From: Shivani Bhardwaj Date: Fri, 21 Dec 2018 09:14:53 +0000 (+0530) Subject: Make header an optional argument X-Git-Tag: 1.1.0rc1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f52d10430f55a7ac6de2bd0d83f76e92b5a1a73a;p=thirdparty%2Fsuricata-update.git Make header an optional argument header was being used as a required argument in SourceConfiguration class. Since SourceConfiguration class has been used multiple times across commands, not all the commands require header argument and thus it breaks. Fix it by making header an optional argument. Closes redmine ticket #2753 --- diff --git a/suricata/update/sources.py b/suricata/update/sources.py index 87e90cf..bf7b64b 100644 --- a/suricata/update/sources.py +++ b/suricata/update/sources.py @@ -77,7 +77,7 @@ def save_source_config(source_config): class SourceConfiguration: - def __init__(self, name, header, url=None, params={}): + def __init__(self, name, header=None, url=None, params={}): self.name = name self.url = url self.params = params