Werk #11895: omd_info: only create host label 'cmk/check_mk_server:yes' if sites are present

Component Checks & agents
Title omd_info: only create host label 'cmk/check_mk_server:yes' if sites are present
Date Jan 20, 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.0b5 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0p21 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Previously, the host label 'cmk/check_mk_server:yes' was set whenever omd was in the path. This a bit too general. We now only set the label, if at least one site is present.

To the list of all Werks