Skip to content

Commit 73c59cb

Browse files
committed
Fixed error with get global settings
The entire config was taken not only the global one.
1 parent 95fc5bb commit 73c59cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intelmq/bin/intelmqctl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ def check(self, no_connections=False, check_executables=True):
926926
"intelmqctl upgrade-config.")
927927

928928
check_logger.info('Checking for bots.')
929-
global_settings = files[RUNTIME_CONF_FILE]
929+
global_settings = files[RUNTIME_CONF_FILE].get('global', {})
930930
for bot_id, bot_config in files[RUNTIME_CONF_FILE].items():
931931
if bot_id != 'global':
932932
# importable module

0 commit comments

Comments
 (0)