Werk #13646: Fix host API calls in case a previous discovery failed

Component REST API
Title Fix host API calls in case a previous discovery failed
Date Apr 13, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b6 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p27 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

REST API calls returning host data structures could fail in case a bulk discovery failed for one of the handled hosts before. The API calls failed with a HTTP 500 error and a message like "Server was about to send an invalid response: inventory_failed - Unknown field"

To the list of all Werks