-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jinja and remove_affix: fix bot class
- Loading branch information
1 parent
47c7b20
commit 46a9b7a
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,10 @@ | |
SPDX-FileCopyrightText: 2021 Marius Karotkis <[email protected]> | ||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
""" | ||
from intelmq.lib.bot import Bot | ||
from intelmq.lib.bot import ExpertBot | ||
|
||
|
||
class RemoveAffixExpertBot(Bot): | ||
class RemoveAffixExpertBot(ExpertBot): | ||
remove_prefix: bool = True # True - from start, False - from end | ||
affix: str = 'www.' | ||
field: str = 'source.fqdn' | ||
|