Werk #7765: Fix parent scan when no gateway was found

Komponente Setup
Titel Fix parent scan when no gateway was found
Datum 05.06.2019
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.6.0b2 2.0.0i1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

When the parent scan found not gateway, e.g. because the scanned host is the local host, then an exception like this was produced by the background job:

ERROR heute on site heute: type object argument after * must be an iterable, not NoneType
Traceback (most recent call last):
  File "/omd/sites/heute/lib/python/cmk/gui/wato/pages/parentscan.py", line 107, in _process_task
    self._execute_parent_scan(task, settings))
  File "/omd/sites/heute/lib/python/cmk/gui/wato/pages/parentscan.py", line 130, in _process_parent_scan_results
    gateway = ParentScanResult(*gateways[0][0]) if gateways[0] is not None else None
TypeError: type object argument after * must be an iterable, not NoneType

Zur Liste aller Werks