Skip to content

Commit ac3c227

Browse files
committed
list_all_bots: use bot name as module
Fix check for bot executable in $PATH by using the bot name instead of the import path fixes #2559
1 parent c8b9785 commit ac3c227

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+2-1
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

intelmq/lib/utils.py

+1-1
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)