Skip to content

Commit

Permalink
Merge pull request #2459 from gethvi/fix-shadowserver-fixed-report-type
Browse files Browse the repository at this point in the history
Fix Shadowserver parser fixed report type.
  • Loading branch information
sebix committed Feb 5, 2024
2 parents 51994d1 + 2ec8227 commit 7085de1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion intelmq/bots/parsers/shadowserver/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def enable_auto_update(enable):
__config.auto_update = enable


def get_feed_by_feedname(given_feedname: str) -> Optional[Dict[str, Any]]:
def get_feed_by_feedname(given_feedname: str) -> Optional[Tuple[str, Dict[str, Any]]]:
return __config.feedname_mapping.get(given_feedname, None)


Expand Down
1 change: 1 addition & 0 deletions intelmq/bots/parsers/shadowserver/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def init(self):
if self.feedname is not None:
self._sparser_config = config.get_feed_by_feedname(self.feedname)
if self._sparser_config:
self._sparser_config = self._sparser_config[1]
self.logger.info('Using fixed feed name %r for parsing reports.' % self.feedname)
self._mode = 'fixed'
else:
Expand Down

0 comments on commit 7085de1

Please sign in to comment.