Werk #12561: Fix KeyError (site_id) crash on host properties page (2.0.0p2 regression)

Component Setup
Title Fix KeyError (site_id) crash on host properties page (2.0.0p2 regression)
Date Apr 26, 2021
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p4 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

When opening the host properties page in the setup an exception KeyError ("site_id") could appear in distributed setups. This issue was triggered when a folder has a site attribute configured which does not have a site specific global setting defined. This situation is now cleanly handled to prevent this exception.

To the list of all Werks