Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Commit

Permalink
fixed issue with broken backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
unixfreak0037 committed Feb 14, 2019
1 parent 0487aa6 commit a2a7d6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ace_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ class Analysis(object):
:param list tags: (optional) If this request becomes an Alert, these tags will get added to it.
:param list files: (optional) A list of (file_name, file_descriptor) tuples to be included in this ACE request.
"""
def __init__(self, description, *args, **kwargs):
def __init__(self, *args, **kwargs):
# these just get passed to ace_api.submit function
self.submit_args = args
self.submit_kwargs = kwargs
Expand All @@ -783,7 +783,7 @@ def __init__(self, description, *args, **kwargs):

# default submission
self.submit_kwargs = {
'description': description,
'description': '',
'analysis_mode': 'analysis',
'tool': 'ace_api',
'tool_instance': 'ace_api:{}'.format(socket.getfqdn()),
Expand Down Expand Up @@ -1213,8 +1213,8 @@ class Alert(Analysis):
There is no reason to use this class rather than the Analysis class.
If you want to force an analysis submission to become an alert, you should declare your Analysis with the analysis_mode set to 'correlation'.
"""
def __init__(self, description, *args, **kwargs):
super().__init__(description, *args, **kwargs)
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# default mode for legacy api is correlation
self.submit_kwargs['analysis_mode'] = 'correlation'

Expand Down

0 comments on commit a2a7d6f

Please sign in to comment.