Skip to content

Commit 0652f62

Browse files
bug: fix ctl process manager initialization non-interactive
if the intelmq controller class is initiated non-interactively the process manager instance was not initiated this caused the intelmqdump tool to crash when retrieving the status of a bot
1 parent cda1a9f commit 0652f62

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

intelmq/bin/intelmqctl.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import textwrap
1616
import traceback
1717
import time
18-
from collections import OrderedDict
1918

2019
import pkg_resources
2120
from ruamel.yaml import YAML
@@ -374,6 +373,15 @@ def __init__(self, interactive: bool = False, returntype: ReturnType = ReturnTyp
374373
parser_debug.set_defaults(func=self.debug)
375374

376375
self.parser = parser
376+
else:
377+
self._processmanager = process_managers()[self._processmanagertype](
378+
self._interactive,
379+
self._runtime_configuration,
380+
self._logger,
381+
self._returntype,
382+
self._quiet
383+
)
384+
377385

378386
def load_defaults_configuration(self, silent=False):
379387
for option, value in utils.get_global_settings().items():

0 commit comments

Comments
 (0)