Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: e8ec683edb99ee7a1ffe4ba0c7263a627a52cc8f
https://github.com/tribe29/checkmk/commit/e8ec683edb99ee7a1ffe4ba0c7263a627…
Author: Philipp Siegmantel <philipp.siegmantel(a)tribe29.com>
Date: 2022-11-29 (Tue, 29 Nov 2022)
Changed paths:
A .werks/13968
M cmk/gui/fields/definitions.py
M cmk/gui/watolib/builtin_attributes.py
M tests/unit/cmk/gui/plugins/openapi/test_openapi_host_config.py
Log Message:
-----------
13968 FIX Unknown sites in host_config endpoints will now be marked as such
Having a host configured with a unknown site would return a 500 status code error on
endpoints such as "/domain-types/host_config/collections/all".
This is common in a distributed monitoring environment.
Instead the site field under the "extensions" and "attributes" key
will now return the site id prefixed with "Unknown Site:".
This matched the behaviour of the GUI.
Change-Id: Ib4feae68abd96ab29fc06b1ba0636bfee24b49c9