]> git.ipfire.org Git - thirdparty/suricata-update.git/commitdiff
Make header an optional argument
authorShivani Bhardwaj <shivanib134@gmail.com>
Fri, 21 Dec 2018 09:14:53 +0000 (14:44 +0530)
committerJason Ish <ish@unx.ca>
Fri, 21 Dec 2018 15:12:10 +0000 (09:12 -0600)
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

suricata/update/sources.py

index 87e90cf528a7419fe4192784144c4d61d1a42edc..bf7b64bf03a43fe71482cc0e2314d4e12171cba4 100644 (file)
@@ -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