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

Component Setup
Title Fix parent scan when no gateway was found
Date Jun 5, 2019
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.6.0b2 2.0.0i1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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

To the list of all Werks