Skip to content

Commit 15a0e00

Browse files
authored
Merge pull request #2564 from sebix/fix-2559
list_all_bots: use bot name as module
2 parents 1058919 + e9e8513 commit 15a0e00

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- comment
2-
SPDX-FileCopyrightText: 2015-2024 Sebastian Wagner
2+
SPDX-FileCopyrightText: 2015-2025 Sebastian Wagner
33
SPDX-License-Identifier: AGPL-3.0-or-later
44
-->
55

@@ -13,6 +13,7 @@
1313

1414
### Core
1515
- Python 3.8 or newer is required (PR#2541 by Sebastian Wagner).
16+
- `intelmq.lib.utils.list_all_bots`/`intelmqctl check`: Fix check for bot executable in $PATH by using the bot name instead of the import path (fixes #2559, PR#2564 by Sebastian Wagner).
1617

1718
### Development
1819

@@ -366,7 +367,7 @@ This is short list of the most important known issues. The full list can be retr
366367
- Added an ExpertBot class - it should be used by all expert bots as a parent class
367368
- Introduced a module for IntelMQ related datatypes `intelmq.lib.datatypes` which for now only contains an Enum listing the four bot types
368369
- Added a `bottype` attribute to CollectorBot, ParserBot, ExpertBot, OutputBot
369-
- Introduces a module for IntelMQ processmanagers. The processmanagers were up until now part of the intelmqct script.
370+
- Introduces a module for IntelMQ processmanagers. The processmanagers were up until now part of the intelmqctl script.
370371
They now reside in `intelmq.lib.processmanager` which also contains an interface definition the processmanager implementations must adhere to.
371372
Both the processmanagers and the `intelmqctl` script were cleaned up a bit.
372373
The `LogLevel` and `ReturnType` Enums were added to `intelmq.lib.datatypes`.

intelmq/lib/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ def list_all_bots() -> dict:
913913
name = name.replace(bot_type, '')
914914

915915
bots[module_name.split('.')[2].capitalize()[:-1]][name] = {
916-
"module": mod.__name__,
916+
"module": bot.name,
917917
"description": "Missing description" if not getattr(mod.BOT, '__doc__', None) else textwrap.dedent(mod.BOT.__doc__).strip(),
918918
"parameters": keys,
919919
}

0 commit comments

Comments
 (0)