Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: a3d019ffddec56e69255f86fef3d85180cecb12a
https://github.com/tribe29/checkmk/commit/a3d019ffddec56e69255f86fef3d85180…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2021-09-23 (Thu, 23 Sep 2021)
Changed paths:
A .werks/13336
M cmk/base/plugins/agent_based/services.py
M tests/unit/cmk/base/plugins/agent_based/test_services.py
Log Message:
-----------
13336 FIX Windows Services works if Services states has no elements
The previous version of services.py falsely assumed that if params contains the key
"states", that the corresponding entry contains at least one element matching
the
service. However, this assumption is violated if ones species a rule without any
elements. In this params["states"] is the empty list [].
Change-Id: If614fe532379b87a9730cce02941e3794eca46df